Jump to content
UBot Underground

Ui Html Panel - Open File & Run Button Problem


Recommended Posts

Hi,

 

I'm working on a UI html panel and I cannot get my Open File button or Start buttons to function. I defined the Start but am not having any luck.

 

 

 

Can anyone see my problem in the following code?

 

 

 

--Open File Button--

 

<button variable="#localBizs" fillwith="value" type="file" id="addimager89966" dialogtype="open" name="file" class="button08" style="text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:800;color:#000000;border-radius:9px;"><!--lab-->Load Local Business File</button>

 

--Run Button--

 

<button id="addimager246634"  onclick="ubot.runScript('Start()')" class="button02" style="text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:400;color:#ffffff;border-radius:6px;"><!--lab-->Create Driving Directions</button>

 

Thanks

Link to post
Share on other sites

Use "File Select" instead of a button to add an Open File element.

The Start button works fine, you just need to add a define to your bot called "Start" and add your commands to the define.
 

ui html panel("--Open File Button--
 
<input variable=\"#localBizs\" fillwith=\"value\" type=\"file\" id=\"addimager89966\" dialogtype=\"open\" name=\"file\" class=\"button08\" style=\"text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:800;color:#000000;border-radius:9px;\"><!--lab-->Load Local Business File</input>
 
--Run Button--
 
<button id=\"addimager246634\"  onclick=\"ubot.runScript(\'Start()\')\" class=\"button02\" style=\"text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:400;color:#ffffff;border-radius:6px;\"><!--lab-->Create Driving Directions</button>",333)
define Start {
    alert("Button is working")
}

Link to post
Share on other sites

What images are you referring to?  What Darryl showed you is an excellent example of what you need to use.

 

I guess I'm missing the point of what you are striving to acheive.

 

Buddy

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