As I wrote in my original issue, the $ is working, because I can select the accordion with jquery, I get back the good DOM element. Just I can't use Jquery UI custom functions in Greasemonkey.
Dave Land wrote: > > On Jul 9, 2012, at 11:52 PM, martonx wrote: > >> I have a very little GM script, which I want to destroy a Jquery UI >> accordion. My script's main propreties are here: >> >> // @require >> http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js >> // @require >> http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.19/jquery-ui.min.js >> >> console.log($('#accordion',top.document)); // write out the Jquery >> accordion >> object correctly >> $('#accordion',top.document).accordion('destroy'); // this line should >> destroy the accordion, but it does nothing. >> >> When I run $('#accordion',top.document).accordion('destroy'); in Firebug >> Console, the accordion destroyed correctly. >> >> Please advice, how could I manipulate Jquery UI objects from >> Greasemonkey? > > See if this blog entry (from 2009) helps: > > http://11heavens.com/using-greasemonkey-to-load-and-use-jQuery > > It may be that another JS library (Prototype was the culprit in the above > post) > is conflicting with jQuery's $(...) syntax. The above post points a way > around > that conflict. > > Dave > > > > -- > You received this message because you are subscribed to the Google Groups > "greasemonkey-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/greasemonkey-users?hl=en. > > > -- View this message in context: http://old.nabble.com/Jquery-UI-accordion-issue-tp34137884p34144108.html Sent from the GreaseMonkey List mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
