Jump to content
UBot Underground

Recommended Posts

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?

Link to post
Share on other sites

<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 first

also include your external source like jquery.js  at the end of your html

 

hope that helps a bit

greetz arno

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...