General > Developers Corner
motdmenu.lua "back" button
krooks:
Is there some (relatively simple) way for me to add a back button to this file?
I like that the menu allows for us to specify web pages, and I thought it would be nice to link to places like google from my main motd. This way the players on my server would have another option (other than steam's clunky browser), to browse the web.
Megiddo:
There's some way to do it, if only using the javascript command for back. Otherwise I think you can catch each new page in a callback somewhere to store them.
krooks:
Yeah I thought of using a PHP or Java way to go about this, but I was getting confused, because I would have to run it in an iframe, if linking to Google, then I didn't know how to go about targeting the iframe with java/php
To clarify, I'm not looking to go back to the main motd page necessarily, I could do that with java/php no problem. But rather I am trying to be able to browse google and go back to your google search after visiting the desired page.
The Lua idea you mentioned sounds a bit more in-depth than I anticipated, having to store and callback pages
Thanks for the pointers though
JamminR:
Though I don't know the javascript 'document' properties well enough to help directly, if you could find how to get javascript to act on 'targets', just as the HTML anchor tag can, I would think it possible to name the frame, and have the javascript perform the 'back' action on it.
krooks:
Yeah, I'm not really a java guy either ;D
If I come up with something I'll be sure to let everyone know
Navigation
[0] Message Index
[#] Next page
Go to full version