Hello it is possible to get a return value if I execute javascript. If yes how?
example
[QUOTE]
self.YeraPanel:RunJavascript( "player.getVolume()")
[/QUOTE]
return value should be then example 100
I try to make clientside controllable youtube and some hud stuff
I'm not really sure if this is possible for webpages that you don't create or that are outside of garrysmod itself. If you want to see how garrysmod's main menu does it check out these two locations:
garrysmod\garrysmod\lua\menu
garrysmod\garrysmod\html\js
If the same technique works on outside webpages, you could call your custom javascript function via lua, and have it run a callback using something like lua.js , haven't tested it out but it doesn't seem like it would work. If that method doesn't work, something like [url=http://facepunch.com/showthread.php?t=1110722]this[/url] might still work.
I made myself one already
[url]http://garrysmod.zulu907.server4you.de/s/yt/[/url]
if you want play something
[url]http://garrysmod.zulu907.server4you.de/s/yt/?id=IUGzY-ihqWc[/url]
Sorry, you need to Log In to post a reply to this thread.