• Get the URL of the current DHTML Panel?
    2 replies, posted
None of the functions outlined in garry's vgui github seem to function properly, what I'm trying to do is retrieve a URL of a webpage the user is currently on on a dhtml panel. Any ideas as to which functions I could use that work properly?
Maybe save/update it in a variable or accessor everytime the DocumentFinishedLoading Hook is called. [url]https://github.com/garrynewman/garrysmod/blob/e1394d6d200276c389e805d4b5f579665c2bdd0b/garrysmod/lua/vgui/dhtml.lua#L168[/url]
Yea here [url]https://wiki.garrysmod.com/page/PANEL/OnDocumentReady[/url] [code]function panel:OnDocumentReady( url ) print( url ) end[/code]
Sorry, you need to Log In to post a reply to this thread.