Difference between revisions of "GoTo"
(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...") |
m (Protected "GoTo" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading]) |
(No difference)
|
Latest revision as of 20:27, 22 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¶meter2=some value...
But bee aware that since KML is inbeded in XML you have to replace the '&' with the HTML escape sequence '&' So the above example in KML would be:
<GOTO href="someaddress.com?parameter=value&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)