darryl561 177 Posted August 18, 2010 Report Share Posted August 18, 2010 Hi, I created a bot and included javascript alerts to alert a user if a particular user input field was not filled in. It works perfectly except when I compile the bot. The alerts do not work at all in the compiled bot.Does anyone know what the problem might be? Darryl. Quote Link to post Share on other sites
IRobot 43 Posted August 18, 2010 Report Share Posted August 18, 2010 Hi Darryl, If the site the bot has navigated to does not support javascript or has javascript disabled, then javascript (e.g. alert()) will not run. 1. Are you saying that the javascript alert() works in Ubot Studio but not for the compiled bot?2. Are you testing this on a specific website? If so, which? Quote Link to post Share on other sites
Praney Behl 314 Posted August 18, 2010 Report Share Posted August 18, 2010 Hey Guys, I have the same problems with JS alerts, sometimes but not all, the script in Ubot studio works well with JV alerts but the compiled bot will not support the same.. I was gonna post this on the forum but just saw this post then.. Anyone know why is it so.. Praney Quote Link to post Share on other sites
darryl561 177 Posted August 18, 2010 Author Report Share Posted August 18, 2010 Hi IRobot, I just realized after reading your reply that the bot does'nt actually navigate to a site and so that's why the alerts are not working in the compiled bot. Thanks,Darryl. Quote Link to post Share on other sites
IRobot 43 Posted August 18, 2010 Report Share Posted August 18, 2010 Hi Daryl, Yeah. I just tested it by navigating to google.com, before running JS > alert(). Works fine for both UB Studio and compiled.exe. Quote Link to post Share on other sites
Praney Behl 314 Posted August 18, 2010 Report Share Posted August 18, 2010 Hmm interesting.. I'll have to look into that to... great info Irobot.. Thanks! Quote Link to post Share on other sites
Net66 54 Posted August 18, 2010 Report Share Posted August 18, 2010 Hmm interesting.. I'll have to look into that to... great info Irobot.. Thanks! In ubot you must have gone to a javascript enabled page before using javascript or $eval. When you run a bot in ubot itself it has always loaded the ubot blog page which is java enabled, a compiled bot loads nothing. I made a blank page on my own web space that calls some simple javascript to start the engine and I go to that first in everything I do so I don't run into the problem. This is what is in the html I use; <head> <title>Initializing Bot...</title> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <script type="text/javascript"> document.write("Loading..."); </script> </body> </html> Andy Quote Link to post Share on other sites
darryl561 177 Posted August 19, 2010 Author Report Share Posted August 19, 2010 In ubot you must have gone to a javascript enabled page before using javascript or $eval. When you run a bot in ubot itself it has always loaded the ubot blog page which is java enabled, a compiled bot loads nothing. I made a blank page on my own web space that calls some simple javascript to start the engine and I go to that first in everything I do so I don't run into the problem. This is what is in the html I use; <head> <title>Initializing Bot...</title> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <script type="text/javascript"> document.write("Loading..."); </script> </body> </html> Andy Thanks for that Andy. Thats what I will have to do. Thanks for sharing the code. Darryl. Quote Link to post Share on other sites
Praney Behl 314 Posted August 22, 2010 Report Share Posted August 22, 2010 In ubot you must have gone to a javascript enabled page before using javascript or $eval. When you run a bot in ubot itself it has always loaded the ubot blog page which is java enabled, a compiled bot loads nothing. I made a blank page on my own web space that calls some simple javascript to start the engine and I go to that first in everything I do so I don't run into the problem. This is what is in the html I use; <head> <title>Initializing Bot...</title> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> <script type="text/javascript"> document.write("Loading..."); </script> </body> </html> Andy Great Andy, I check that, tomorrow.. Regards, Praney 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.