Difference between revisions of "GoTo"

From KiSS DP 558 STAGE2 WiKi
Jump to: navigation, search
(Created page with "Usages: <pre> <GOTO href="<url>" /> </pre> ====Parameters==== You can pass parameters to the page, whith the normal GET querry method ex: <pre> somedomain.com?parameter1=som...")
(No difference)

Revision as of 09:50, 3 February 2012

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)