jquery ui in firefox extension
hi!
i'd appreciate just a little advice, if someone has an idea:
i've embedded jquery in a firefox extension, by including it in the
overlay.xul file, and then initing it in my overlay.js file:
$ = function(selector,context){ return new jQuery.fn.init
(selector,context||example.doc); };
$.fn = $.prototype = jQuery.fn;
method described here: http://stackoverflow.com/questions/491490/how-to-use-jquery-in-firefox-extension
this works great!
i'm working, now, on making jquery ui available to the extension. one
failed attempt involued including the jqueryui file from the
overlay.xul file, and then modifying the above code to read:
$ = function(selector,context){ return new jQuery.fn.init
(selector,context||example.doc); };
$.fn = $.prototype = jQuery.fn;
$.ui = jQuery.ui;
there's clearly something i'm not getting here, perhaps it's obvious
to someone?
- martin.