--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
It sounds like what you want to do is partial page refresh, though, generating just the part of the page that's different in response to an Ajax request, and replacing the div content with the Ajax response. In that case, you can just have your routes produce the part of the page that goes in the div. Make an initial request to a route that will serve the full page, and then use ajax requests for the page updates.
For the most robust solution, you can go one better: have your routes serve the full page normally, but detect an Ajax request and only serve the div contents in response to that. That makes it easy to have links that are functional in non-JavaScript capable user agents, and progressively enhance them to do partial page refresh when JS is available.
L.
> --
> You received this message because you are subscribed to the Google Groups "Express" group.
> To post to this group, send email to expre...@googlegroups.com.
> To unsubscribe from this group, send email to express-js+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
>
--
Laurie Harper
http://laurie.holoweb.net/