sifuhall 0 Posted July 1, 2013 Report Share Posted July 1, 2013 I just recently upgraded to the DEV version and am trying out my hand and creating a panel UI. It's pretty easy so far, but I'm not able to reference the variables in the panel. For example, in my panel I have: <input type=\"text\" name=\"imguser\" fillwith=\"innertext\" variable=\"#imguser\" class=\"input-medium\"> <br> <input type=\"password\" name=\"imgpass\" fillwith=\"innertext\" variable=\"#imgpass\" class=\"input-medium\"> and in my ubot code I try to reference the variable #imguser with: alert(#imguser) the alert is empty even if there is text in the text field. What am I doing wrong? Quote Link to post Share on other sites
blumi40 222 Posted July 1, 2013 Report Share Posted July 1, 2013 <input type=\"text\" name=\"imguser\" variable=\"#imguser\" fillwith=\"innertext\" class=\"input-medium\"> it is very important which order u use!also if u work with js like onClick="" inizialize your variable and fillwith firstalso include your external source like jquery.js at the end of your html hope that helps a bitgreetz arno Quote Link to post Share on other sites
sifuhall 0 Posted July 1, 2013 Author Report Share Posted July 1, 2013 Thank you! Moving the external scripts did the trick! Quote Link to post Share on other sites
UBotDev 276 Posted July 1, 2013 Report Share Posted July 1, 2013 You should just use: fillwith="value" And make sure that you remove escapes before quotes " if you are adding the code you have in node view. ui html panel("<input type=\"text\" name=\"imguser\" fillwith=\"value\" variable=\"#imguser\" class=\"input-medium\"> <br> <input type=\"password\" name=\"imgpass\" fillwith=\"value\" variable=\"#imgpass\" class=\"input-medium\">", 200) Works fine here (notice debbuger in bottom right corner): http://screencast.com/t/HKUWFf4BV Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.