Ok so I'm doing something with a DHTML panel and I wanna pass a string from a <textarea></textarea> and the only way ive found of grabing the value from a text area is by using JavaScript. The problem I encountered is that I can't seem to figure out how to pass that string back properly. Is this possible or am I out of luck
You want to run SetAllowLua on the DHTML panel then use Javascript to execute Lua and pass your value
The first example from the DHTML wiki page should help:
http://wiki.garrysmod.com/page/Category:DHTML
Use DHTML/AddFunction
You can pass arguments into the created function in JavaScript which are then passed to Lua.
maybe util.JSONToTable
??
JS is not JSON
Sorry, you need to Log In to post a reply to this thread.