PDA

View Full Version : AJAX URLs?


fside
05-28-2009, 10:52 AM
If you 'AJAX' a lot, and import css and new scripts, one can create the equivalent of a hundred pages without changing the URL - without leaving the original page.

If one wanted to page back or forward through the changes - it would require different URLs. But since making sense of some arbitrary URL 'search' code for each step along the way and for session/user would require a backend database, has anyone written scripts that 'secretly' record in the db for particular users/sessions certain changes to the page and then intercept the forward and back buttons and query the server scripts to send out what had been previous, and following?

Or is it that nobody is so to the point of placing so much under the same URL - and for just that reason?

rnd me
05-29-2009, 10:06 AM
changing the location.search would refresh the page.

you can use cookies to leave a breadcrumb to the page's contents.
this would all be client-side, and you only need read access to the server.

you could also use a DB, but that requires 2way communication.
there is no way to hide the http transactions.

shedokan
05-29-2009, 02:47 PM
maybe use ajax to get pages and put them in a container, and juts for each page update the container.

A1ien51
05-29-2009, 04:44 PM
Google: Really Simple History

Eric

fside
05-30-2009, 03:29 AM
Google: Really Simple History

Eric

Google project - page state as a bookmark.

Yep, that's exactly what I was talking about. And they've got this whole app, and web board, and everything devoted to it.

Thank you, very much.