2007. 12. 6, cs�t�rt�k keltez�ssel 08.08-kor Michael Nolan ezt �rta: > On Dec 6, 11:12 am, Zolt�n N�meth <[EMAIL PROTECTED]> wrote: > > 2007. 12. 6, cs�t�rt�k keltez�ssel 02.47-kor Michael Nolan ezt �rta: > > > > > Yes, we use jQuery through the sfUJSPlugin. I try to avoid using any > > > of the prototype helpers and do the JavaScript manually but > > > sfUJSPlugin comes with a replacement JavaScript library which will use > > > jQuery. I don't remember if this does effects but it'd a drop in > > > replacement for Ajax calls. > > > > > It's also possible to get jQuery and Prototype loading along side each > > > other but you lose the ability to use $ for jQuery: > > > > >http://docs.jquery.com/Using_jQuery_with_Other_Libraries > > > > > If you're going to adopt jQuery completely and ditch Prototype (and > > > you should!) > > > > could you explain why? why is jQuery better? > > > > It's personal opinion really. Newer versions of prototype are better > than they used to, supporting CSS selectors etc. But it's mainly how > you use a JavaScript library. With standard symfony prototype helpers > it adds the JavaScript directly into the tags whereas the sfUJSPlugin/ > jQuery way of doing it is to put the JavaScript into a separate, > cacheable file which applies the JavaScript on top of your HTML. > Ideally you code your pages to be usable with JS disabled and then > sprinkle magic jQuery dust on top to make your site quicker to use > through Ajax calls.
yeah, in that case probably you're right. However in my case, our latest project is not meant to be usable with JS disabled (actually with JS disabled you can't even log in the application) - so here this is not a concern. > > Some people prefer the chaining that jQuery provides while others hate > it and jQuery probably has a slightly smaller footprint. It really > comes down to personal preference and what you're used to but for me > it's jQuery all the way. I don't really know jQuery, so I don't really know if I like it or not. However I know prototype, and I really like its newest version, so for now (at least for this project) I'm going to stick with it. On the other hand, I think I should give a closer look to jQuery, it can't be bad if so many people like it :) greets Zolt�n N�meth > > Mike > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
