addamroy 36 Posted July 13, 2014 Report Share Posted July 13, 2014 Anyone know the proper code to include a button to run a define command from the browser?I'm displaying results in the browser via the load html command, but would like to include a button within the results and am unsure how to create one. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 13, 2014 Report Share Posted July 13, 2014 Here you go: <input type="button" onclick="ubot.runScript('definename()')"> 1 Quote Link to post Share on other sites
addamroy 36 Posted July 13, 2014 Author Report Share Posted July 13, 2014 Thanks that worked perfect.Is there any way to add variables to load HTML via code, instead of dragging each variable into it manually? I coulda sworn it was {#variablename} but i guess i was wrong EDIT** Even when I do it manually, the code shows up in the browser as {#variablename} like I thought, why is that happening? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 13, 2014 Report Share Posted July 13, 2014 Thanks that worked perfect. Is there any way to add variables to load HTML via code, instead of dragging each variable into it manually? I coulda sworn it was {#variablename} but i guess i was wrong EDIT** Even when I do it manually, the code shows up in the browser as {#variablename} like I thought, why is that happening? You need to remove the css codes from your html. It is conflicting with ubot variables.. Quote Link to post Share on other sites
addamroy 36 Posted July 13, 2014 Author Report Share Posted July 13, 2014 All of the CSS?? Or is it possible I have classes/IDs that exactly match a variable? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 13, 2014 Report Share Posted July 13, 2014 All of the CSS?? Or is it possible I have classes/IDs that exactly match a variable? What i did is i put my css on a variable then call that variable inside the html head. Quote Link to post Share on other sites
addamroy 36 Posted July 13, 2014 Author Report Share Posted July 13, 2014 Just did that. {#variablename} still won't render in load html unless I physically drag and drop the variable into it There are ALOT of variables, ekk Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 13, 2014 Report Share Posted July 13, 2014 Maybe you have brackets inside your html code that isnt a ubot variable or javascript codes. Try to slice your html code part by part then assemble it in one variable. Quote Link to post Share on other sites
addamroy 36 Posted July 14, 2014 Author Report Share Posted July 14, 2014 So if I have brackets anywhere inside my HTML, regardless of location it will break my ubot variables? I understand what you're saying I'm just trying to be sure what the conflict is before I go messing with all the code, cuz it's going to take some real time. Is it only the { } causing this, or does the # symbol effect it also? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted July 14, 2014 Report Share Posted July 14, 2014 So if I have brackets anywhere inside my HTML, regardless of location it will break my ubot variables? I understand what you're saying I'm just trying to be sure what the conflict is before I go messing with all the code, cuz it's going to take some real time. Is it only the { } causing this, or does the # symbol effect it also? I think its only the brackets that are causing this. 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.