I am using jquery (ui also) in my ff extension. Everything works fine until ff 10.
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://myext/content/js/jquery-1.7.2.js",wnd); var jQ = wnd.jQuery.noConflict(true); try { loader.loadSubScript("chrome://myext/content/js/jquery.ui.core.min.js", jQ); } catch (Except){ alert(Except.toString()); }
In FF 11, this code does not work. According to the code above, I am trying to load jquery and then load jquery ui libs. Jquery loads, but it does not load "chrome: //myext/content/js/jquery.ui.core.min.js" and gives the error "TypeError: a is undefined"
Any help would be assigned.
source share