maybe it's a question already asked in the past, but I haven't been able to find a solution. I'm able to load in my Firefox extensions jQuery, but I cannot do the same with jQuery UI... I receive this error:
Error: TypeError: div is null Source file: chrome://myext/jquery-1.5.2.js Row: 5653
I'm loading it with the following code:
loadLibraries: function(context) { //load jQuery var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://myext/jquery-1.5.2.js",context); var jQuery = window.jQuery.noConflict(true);