On Mon, Jan 4, 2010 at 8:38 PM, killer barney <[email protected]> wrote: > ya, tha'ts what I figured. The thing is, sometimes I see sites > translate their anchor tags into url queries and I was trying to > figure out how they did that. Im' guessing it's all handled in the > javascript onload that does a redireciton right?
I do that on my personal non-appengine site. The url looks like this on my site: http://mysite.com/#/user/profile/2 The entire site is controlled by a single controller, it loads up a javascript bootstrap. If the bootstrap fails (no xmlrpc or javascript is disabled or something) then a meta-redirect redirects to a non javascript version that looks like this: http://mysite.com/?_=/user/profile/2 The javascript version kills the meta-redirect and sends the pathname to my server, and my server sends the parts of the page it needs. Anytime the anchor changes it does another xmlrpc request that just updates the parts of the pages that need to be updated. Consequently in javascript mode my site seems *very* fast. In non-javascript mode it sends the full page updates each time, but otherwise looks and acts identically, just slower. So yes, you need javascript to do it. Although my server is programmed using C++, not Python or Java or what-not slower languages. -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en.
