imacros with jquery and ajax

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Shoop
Posts: 18
Joined: Fri Apr 17, 2015 10:58 am

imacros with jquery and ajax

Post by Shoop » Thu May 07, 2015 12:47 pm

can imacros play jquery and ajax code if it is found in their .js file? or will it return an error?

also u can call a macro in a javascript. but can u call javascript in macro? (like the reverse of retcode/iimPlay)

edit: not working

Code: Select all

njuskalo=new XMLHttpRequest();

njuskalo.onreadystatechange = function() {
    if (njuskalo.readyState == 4) {
        console.log(njuskalo.responseText);
    }
}

njuskalo.open("GET","http://www.njuskalo.hr/usb-memorija/mem-ufd-8gb-jf300-ts-oglas-15090605");
njuskalo.send();
the code does not work with imacros, while on http://jsfiddle.net/ks037hxm/1/ it works without problems. that answers my questions up on top.
hopefully the imacros staff can start to implement the XMLHttpRequest and other constantsinto the imacros, which could be rly usefull when CORS becomes a standard. or atleast add it to standard/enterprise edition or smthing. hope u guys can bring it up with the dev team. if u need more info why i might need it feel free to ask.
Post Reply