GoTo

From KiSS DP 558 STAGE2 WiKi
Revision as of 20:27, 22 February 2012 by Lars (talk | contribs) (Protected "GoTo" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usages:

<GOTO href="<url>" />

Parameters

You can pass parameters to the page, whith the normal GET querry method ex:

somedomain.com?parameter1=some value&parameter2=some value...

But bee aware that since KML is inbeded in XML you have to replace the '&' with the HTML escape sequence '&amp;' So the above example in KML would be:

<GOTO href="someaddress.com?parameter=value&amp;parameter2=some value" />

(The player will automaticly append the ussual parameters)

Return path

You can use the system variable $$PREVIOUSDOCUMENT$$ to return to the previos page:

<GOTO href="$$PREVIOUSDOCUMENT$$" /> 

Or using the Return button on the remote:

<KEY id="93">
  <ONCLICK>
    <![CDATA[ 
      <GOTO href="$$PREVIOUSDOCUMENT$$" />
    ]]>
  </ONCLICK>
</KEY>

NB: Unfortunatly the play dosen't keep track very well. If a page call it self (which more complex pages often do) $$PREVIOUSDOCUMENT$$ only refer to it self. In functional scripted pages you should therefore keep track of the return path in the script.

--Simon Rigét 02:45, 14 June 2007 (CEST)