Mojave wrote:> I have a section of a page that needs to update based on certain
> events. I use Ajax to do that updating. But on first loading the page,
> that section needs to be populated. I''ve read the way to do this
is
> with partials. With partials, you can use the same method to create
> the initial content and to do the Ajax update. Another way is to
> simply make an Ajax call when the page first loads.
>
> My question is which of these methods is better or is it a personal
> preference?
The partial saves a second hit on your app.
--
We develop, watch us RoR, in numbers too big to ignore.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---