Application Execution Path (HTML5 or Flash)

Monkey Forums/Monkey Beginners/Application Execution Path (HTML5 or Flash)

golomp(Posted 2014) [#1]
Hi,

I would like to get the absolute execution path in HTML5 or Flash in a Monkey app.

It's probably very simple but i did'nt find how to do. (Maybe a system variable appdata field or an httprequest ? or a Java extension with getPathInfo() ? getRequestURI() ?)

For exemple, if the link to execute the HTML5 application is :
http://www.mywebsite.com/monkeygame.html
i would like to get the string "http://www.mywebsite.com/monkeygame.html"
or similar.

Thank you
Golomp


Pharmhaus(Posted 2014) [#2]
This should do the job for html:



golomp(Posted 2014) [#3]
Thank you a lot Pharmhaus, it do exactly the job !

I did not think it was so complicated. Sorry Pharmaus but thank you for the work you have done.

(Plus : I didnt know i had a "dom" library availaible in Monkey.)

Best regards,
Golomp