Jump to content
UBot Underground

*** FREE *** UI HTML Tabbed UI Area


Recommended Posts

 

Hi - thanks for your post. I tried that but I'm getting an error - given key not present in dictionary. This is the code view if it shows where the problem might lie. Greatly appreciate your help.

 

define $google(#google) {

navigate("http://www.google.com", "Wait")

}

ui html panel("<button onclick=\"ubot.runScript(\'google(#google)\')\">Go</button>", 40)

 

 

Using the standard ui button NOT in the html panel (as below) works fine:

 

 

ui button("Go") {

google(#google)

}

define google(#google) {

navigate("http://www.google.com", "Wait")

}

Link to post
Share on other sites

Removed your other 2 posts made in separate threads for the same question.. Ask once in 1 location is plenty good..

 

 

Variable wasn't needed,

Not a function its a command.

Functions return a value, commands perform actions.

 

code:

define google {
   navigate("http://www.google.com", "Wait")
}
ui html panel("<button onclick=\"ubot.runScript(\'google()\')\">Go</button>", 40)

 

screenshot:

http://content.screencast.com/users/lowridertj/folders/Snagit/media/82b52ba8-5c2c-4c70-a7a2-6705e3de6124/09.15.2012-05.png

Link to post
Share on other sites

Thanks BotGuru. Sorry for additional posts - just saw similar threads so asked there. Won't do it again - promise ;-)

 

I had meant 'command' but in my haste last night wrote function. I had tried putting functions and commands in - thanks for sorting that out and big thanks for the ui html panel tabbed code - brilliant!

Link to post
Share on other sites
  • 2 months later...
  • Thank you
    • Thank you
      • Thank you
        • Thank you
          • Thank you
            • Thank you
              • Thank you
                • Thank you
                  • THANK YOU!

I just don't know what else to say.

 

Just hit the LIKE THIS button, mate .. add some love to the man's profile.

Link to post
Share on other sites

Removed your other 2 posts made in separate threads for the same question.. Ask once in 1 location is plenty good..

 

 

Variable wasn't needed,

Not a function its a command.

Functions return a value, commands perform actions.

 

code:

define google {
navigate("http://www.google.com", "Wait")
}
ui html panel("<button onclick=\"ubot.runScript(\'google()\')\">Go</button>", 40)

 

screenshot:

http://content.screencast.com/users/lowridertj/folders/Snagit/media/82b52ba8-5c2c-4c70-a7a2-6705e3de6124/09.15.2012-05.png

 

i have a quick question to clear things up for me , maybe im over tired not sure but ok

 

this is second tab in original code example

 

<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
				  <tr>
				    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
					  <tr>
					    <td>Input Example</td>
					    <td><input name=\"inputexample\" type=\"text\" variable=\"#inputexample\" fillwith=\"value\" /></td>
					  </tr>
					  <tr>
					    <td>Dropdown Example</td>
					    <td><select name=\"dropdownexample\" variable=\"#dropdownexample\" fillwith=\"value\">
						  <option selected=\"selected\" value=\"0\">Choose a category</option>
						  <option value=\"1\">Option 1</option>
						  <option value=\"2\">Option 2</option>
						  </select></td>
					  </tr>
					  <tr>
					    <td>Checkbox Example</td>
					    <td><input name=\"checkboxexample\" type=\"checkbox\" variable=\"#checkboxexample\" fillwith=\"checked\"/></td>
					  </tr>
				    </table></td>
				    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
					  <tr>
					    <td>Textarea Example</td>
					  </tr>
					  <tr>
					    <td><textarea name=\"textareaexample\" cols=\"20\" rows=\"5\" variable=\"#textareaexample\" fillwith=\"value\"></textarea></td>
					  </tr>
				    </table></td>
				  </tr>
			    </table>

 

and here is the other code you setup for him now can you make it show in this tab box code so its clear to me how this works

define google {
    navigate("http://www.google.com", "Wait")
}
ui html panel("<button onclick=\"ubot.runScript(\'google()\')\">Go</button>", 40)

thanks

Link to post
Share on other sites
  • 1 month later...
  • 5 months later...
  • 5 years later...

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