WhiteHatBox
Share Page
Following(0)
Partner(s)
sturmundrang

How to simulate ENTER in ajax

ReplyThanks 2016/01/29 18:29:52 0 0

Hi, I noticed botchief struggles a bit with ajax, or I am unable to find the right onpage elements to make it work. I have this search form with no submission button, it's an ajax event <form action="#" method="post" onsubmit="return false;"><input type="text" data="input"></form>. To activate the search the only way is to hit ENTER, but when I simulate it with the bot it doesn't work. So I guess I am either focusing on the wrong element or the ENTER simulator cannot handle ajax.


If you have a way, much appreciated.

henryreith
2016/01/30 10:03:37

I have had similar issues.


This could be achieved by writing some Javascript. I know not everyone can do this, so it might be something that would be good to build into the default option, but from my knowledge of Javascript it could be used to simulate Ajax stuff.


It would be even nicer to be able to use Plython in BotChief as this is such an easy language to learn to do things like this.

sturmundrang
2016/01/30 12:58:45
Will try with JS then, thanks
WhiteHatBox
2016/02/02 12:58:40
You can send me the url of the page here, I will check it for you and find a simple solution.
Let's ROCK!
<< < 1> >>
VerifyCode
Advanced Option