Can you show or paste the code you're using? On Sat, Mar 7, 2009 at 7:02 PM, moritz <[email protected]> wrote:
> > I've tried your suggestion and some others from the jQuery page, but I > keep getting an exception in Firebug on line 871 of jquery-1.2.6.js > > [Exception... "Component returned failure code: 0x80004005 > (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]" nsresult: > "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: > http://localhost:3000/javascripts/jquery-1.2.6.js?1231867032 :: > anonymous :: line 871" data: no] > var computedStyle = defaultView.getComputedStyle( elem, null ); > > Any clue why that could be happening? > > I also don't get the jQuery behavior that I'm expecting. > > On Feb 23, 4:59 pm, Chris Lee <[email protected]> wrote: > > It seems CE makes use of Rails' js helpers in many places. The default > helpers, of course, rely on Prototype. However, you can safely use JQuery > along with Prototype, calling JQuery fuctions and plugins where you need to > and leaving CE's Prototype use as is. > > > > The easy way to do this is JQuery's noConflict method, which allows you > to override JQuery's default selector ($, which conflicts with Prototype's). > Here's the example taken straight from the JQuery docs ( > http://docs.jquery.com/Using_jQuery_with_Other_Libraries): > > > > <html> > > <head> > > <script src="prototype.js"></script> > > <script src="jquery.js"></script> > > <script> > > var $j = jQuery.noConflict(); > > > > // Use jQuery via $j(...) > > $j(document).ready(function(){ > > $j("div").hide(); > > }); > > > > // Use Prototype with $(...), etc. > > $('someid').hide(); > > </script> > > </head> > > <body></body> > > </html> > > > > ----- Original Message ---- > > From: moritz <[email protected]> > > To: CommunityEngine <[email protected]> > > Sent: Monday, February 23, 2009 6:30:38 PM > > Subject: [CommunityEngine] jQuery and CE > > > > It's been asked before w/o answers, so I'll try as well. > > > > How much and where does CE make use of Prototype? > > > > What is the feasibility of using jQuery in addition to / instead of > > Prototype? > > > > Thanks in advance for sharing your knowledge. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
