Hey, What would you recomment jQuery or Prototype (scriptaculous)? Not for use in RoR!!! Maybe you can also tell me reasons for your choice. Thanks for answer, zok --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Well, it is very interesting question. Especially, in prototype group. :) I would say, that if U use a lot of javascript, it''s right to use Prototype. But if u use javascript only for definite modules in your project, use jQuery. On 4 мар, 00:56, zok <goo...-48tJirJDW89Wk0Htik3J/w@public.gmane.org> wrote:> Hey, > > What would you recomment jQuery or Prototype (scriptaculous)? Not for > use in RoR!!! > Maybe you can also tell me reasons for your choice. > > Thanks for answer, > zok--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
jQuery''s big thing is that it uses css selectors to modify the dom. Prototype''s big thing is that it extends native datatype prototypes to give added features and methods. Prototype can also modify by selector using $$(). Both frameworks compress well Prototype to 20kb jQuery to 15kb Both have simalar functions, though Prototype has more for class building and things like that. If you are using a framework to add a little spice to your blog you could use jQuery. If you are buidling a web app clientside I would use Prototype. I love Prototypes native extentions. Give this a read: http://www.prototypejs.org/learn Prototypes source is easier to read IMO. Both have great community and trouble shooting support: http://scripteka.com/ There are pissing contests between Prototype uses and jQuery users in reguards to code footprint. Both produce smaller code footprint than regular javascript and both are about the same footprint. Lots of articles say one is better than the other but usually the author doesn''t know one of the frameworks as well and produces longer/ unoptimized code for one of the frameworks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Both frameworks can chaining methods: http://www.prototypejs.org/api/element --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Try both and see what works best for you. These discussion on which framework is better are a waste of time. Those who recommend one don''t know the other one well enough. I also don''t see the point in using one over another on a case by case basis, pick one and stick with it to save yourself time. On 3 mrt, 19:56, zok <goo...-48tJirJDW89Wk0Htik3J/w@public.gmane.org> wrote:> Hey, > > What would you recomment jQuery or Prototype (scriptaculous)? Not for > use in RoR!!! > Maybe you can also tell me reasons for your choice. > > Thanks for answer, > zok--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 4, 4:56 am, zok <goo...-48tJirJDW89Wk0Htik3J/w@public.gmane.org> wrote:> Hey, > > What would you recomment jQuery or Prototype (scriptaculous)? Not for > use in RoR!!! > Maybe you can also tell me reasons for your choice.You may decide to not use either. Depending on what you are doing, it may be easier to write your own set of functions to do just what you want. You can also include code from other sources as required. jQuery and Prototype.js only provide limited browser support, so if you intend to support a wide selection of browsers (e.g. the pethora of mobile browsers) neither may suit. -- Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---