Forum Moderators: open
As everyone knows, AJAX and the Back Button don't get along well.
I have a hack that uses a session to keep up to date state, so I can simulate a back button.
However, this is awkward, and doesn't work when I call outside the site.
Is there a way to "revise history," so that the next page's "Back" button will have a URI that will contain parameters I can use to establish state?
I can probably make the session work, but a cookie is easier (I'm not sure how to access a session in JavaScript).
I don't think that this is possible without cookies or sessions.
[update]No, I'm wrong, but it ain't a simple solution. I may actually be better off using cookies.[/update]
I completely agree that "Accessible AJAX" is an oxymoron.
However, there is no choice, here.
The AJAX in question is the Google Maps API [google.com].
The maps implementation is a "luxury" implementation that accompanies a far more spartan (and accessible) implementation. I am mostly aiming for usability here, more than accessibility.
[update 2][duh]Sessions are server-based. Can't get there from here.[/duh][/update 2]
example.com/mappage.html?address=555%20Any%20street
this *should* enable bookmarking specific location that user entered into search form (that is if you have it). Also if there were multiple search queries entered you can use back button to go to them.
This solution won't work if user enters location, moves map around and wants to bookmark current position on the map...
Again not sure what exactly you want to do so...