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++.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

imacros with jquery and ajax

by Shoop on Thu May 07, 2015 5:47 am

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.
Shoop
 
Posts: 18
Joined: Fri Apr 17, 2015 3:58 am

Return to Scripting and Command Line Interface

Who is online

Users browsing this forum: No registered users and 1 guest

-->