You are not logged in.

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

1

Monday, December 14th 2020, 4:00am

Why can't output <and>

Source code

1
2
3
4
5
6
7
8
<action name="action_qhzkhsxthwjc" autorun="preinit">
		trace('&lt;scene',
			' ',
			'name=','&quot;',scene_00,'&quot;',
			' ',
			'&gt;'
		);
</action>

&lt;scene name="scene_00" &gt;
Why can't output <and>
*confused* *confused* *confused*

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

3

Monday, December 14th 2020, 1:32pm

@indexofrefraction

hs.html = "&lt;xml&gt;"
actions.trace('html:',hs.html);

INFO: html: &lt;xml&gt;

I want to output display
INFO: html: <xml>

*confused* *confused* *confused* *confused* *confused*

4

Monday, December 14th 2020, 2:32pm

Source code

1
2
3
	<action name="test" type="javascript" autorun="onstart"><![CDATA[
		krpano.trace(1,'--> works <--');
	]]></action>


this works

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

5

Tuesday, December 15th 2020, 9:03am

krpano.trace(1,'--> works <--'); My test is invalid
I use trace('<scene',' ','>'); uppercase

*confused* *confused* *confused*

6

Tuesday, December 15th 2020, 10:00am

Source code

1
2
3
	<action name="test" type="javascript" autorun="onstart"><![CDATA[
		krpano.trace(1,'--> works <--');
	]]></action>


--> javascript inside CDATA !

7

Tuesday, December 15th 2020, 10:00am

Hi,

that are limitation of the xml format, '&quot;' is not a valid xml entity and a '>' can't be used without '<' before.

Use the CDATA tag as shown above for free usage of any kind of texts.

Best regards,
Klaus

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

8

Tuesday, December 15th 2020, 11:27am

@indexofrefraction


@klaus.krpano


Yes
I missed
<action name="action_rsdaakqzivpr" type="Javascript" autorun="preinit"><![CDATA[
]]></action>

That's it

*love* *love* *love*



9

Tuesday, December 15th 2020, 11:41am

why are all your actions named that strangely ?
action_rsdaakqzivpr <-- ?
is that not making your head explode? *rolleyes*

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

10

Tuesday, December 15th 2020, 12:08pm

Because I have a lot of actions
If you have to think of a name for every action, I will use so many words
I named the action name like this with 12 random letters and will not repeat the action name
*tongue* *tongue* *tongue*

11

Tuesday, December 15th 2020, 12:14pm

Just as note - the name is 'optional' - when you don't call it manually and only use autorun you can skip it:
https://krpano.com/docu/xml/#action.name

panoyun

Intermediate

  • "panoyun" started this thread

Posts: 234

Location: Somalia

  • Send private message

12

Tuesday, December 15th 2020, 1:00pm

ok
*thumbsup*