Jump to content
UBot Underground

What Am I Doing Wrong...


Recommended Posts

I'm trying to figure out how to pass a ubot variable in javascript? Here's some code...

 

 

ui text box("URL to nav too", #url)
load html("<a href=\"javascript;\" onclick=\"ubot.runScript('google({#url})');\">Google</a>")
define google(#url_local) {
    shell("cmd.exe /C \"start {#url_local}\"")
}
stop script
google(#url)

 

 

This just doesn't seem to work properly.

 

 

Thanks,

 

Frank

  • Like 1
Link to post
Share on other sites

Try this

ui text box("URL to nav too", #url)
load html("<a href=\"javascript:;\" onclick=\"ubot.runScript(\'google("{#url}")\');\">Google</a>")
define google(#url_local) {
    shell("cmd.exe /C \"start {#url_local}\"")
}
stop script
google(#url)
  • Like 1
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...