i am a long time imacros user and i use jquery as follows:
Code: Select all
function myRequire( url ) {
const XMLHttpRequest = Components.Constructor("@mozilla.org/xmlextras/xmlhttprequest;1");
var ajax = XMLHttpRequest();
ajax.open( 'GET', url, false );
ajax.onreadystatechange = function () {
var script = ajax.response || ajax.responseText;
if (ajax.readyState === 4) {
switch( ajax.status) {
case 200:
eval.apply( window, [script] );
iimDisplay("script loaded: ", url);
break;
default:
iimDisplay("ERROR: script not loaded: ", url);
}
}
};
ajax.send(null);
}
myRequire("file:///jquery-3.1.0.min.js");
$ = window.$;
JQuery = window.JQuery;
myRequire("file:///jquery-ui.min.js");
Code: Select all
$("#jqDialog").dialog();
Code: Select all
TypeError: $(...).dialog is not a function, line 971 (Error code: -991)
I am not really sure what is going on but for some reason it doesn't work.
Hope someone else had this problem before and can give me a hint..
*edit:
System specs:
imacros: 8.9.7
firefox: 55 - 56
OS: Arch Linux (Kernel: 4.9.58)
Cheers