Hi all,
I have a layout that’s evolving, but it looks like there will be several
divs. I’m trying to keep everything AJAX-y and avoid full page reloads.
My
problem is, if I have the login box in a div, I’m going to want two
other
divs to effectively “refresh” themselves to get data from the server now
that there is a user logged in.
I’m trying to figure out how to accomplish this. I know I can’t do this
with my current layout, because each of these divs I want to refresh is
currently just a partial page template included on a page - nothing
AJAXy
about them. If I want to have the ability to call on parts of the page
to
update themselves, any ideas how I can do that? I’m not sure if there
are
rails helpers I can use, or if I should start looking into hand-coding
Javascript with the prototype library to come up with a way.
Also, if my mental model of how to do page updates is wrong, please
correct
me.
Thanks!
Tom