BigBot 0 Posted May 21, 2013 Report Share Posted May 21, 2013 (edited) Hello Experts, Can someone help me to write a script to run my below command, Basically My idea is I will place a button in html code using <input type="button" value="Clear Temp"> ;and i want to run below code/define through this button. define ClearTemp(#ClearTmp) { clear table(&Datatbl) clear list(%Scrap) clear table(&downtble) } though i want to use this button for some more functions. But this time I want to use this to clear some variables. Thanks Edited May 21, 2013 by BigBot Quote Link to post Share on other sites
jomark3 25 Posted May 21, 2013 Report Share Posted May 21, 2013 This should do it: <button class="Clear Temp" onclick="ubot.runScript('ClearTemp()')">Button Name</button> Quote Link to post Share on other sites
BigBot 0 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Sorry, But that does not work for me. Returns with and Index error; Quote Link to post Share on other sites
BigBot 0 Posted May 21, 2013 Author Report Share Posted May 21, 2013 ahh, that's working now, thanks a lot Quote Link to post Share on other sites
jomark3 25 Posted May 22, 2013 Report Share Posted May 22, 2013 Glad you got it sorted out. 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.