cjacobs 2 Posted June 12, 2018 Report Share Posted June 12, 2018 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 Quote Link to post Share on other sites
darryl561 177 Posted June 12, 2018 Report Share Posted June 12, 2018 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") } Quote Link to post Share on other sites
cjacobs 2 Posted June 12, 2018 Author Report Share Posted June 12, 2018 Hi Darryl, I saw the file select but didn't want to use the images shown. There has to be a way to use an image button. Thanks,Cavin Quote Link to post Share on other sites
UBotBuddy 331 Posted June 17, 2018 Report Share Posted June 17, 2018 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 Quote Link to post Share on other sites
cjacobs 2 Posted June 17, 2018 Author Report Share Posted June 17, 2018 Problem solved.I got it working with another UI builder. 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.