Using the browser back button

5 weergaven
Naar het eerste ongelezen bericht

Regan Jacobs

ongelezen,
5 okt 2009, 08:35:1605-10-2009
aan asp-ajaxed
I have written an asp application using AJAXED, Thanks for the great
tools btw.
I am now having the issue where users click the back button and it
takes them back to the Main page (First Load) because the calls are
all ajax and not full page loads.

My question is, is there any way to implement a type of history in
ajaxed like Google is using maybe?!
Maybe with a { #url } appened to the page URL?!

Please help :)

Regan Jacobs

ongelezen,
15 okt 2009, 03:37:4315-10-2009
aan asp-ajaxed
Anyone? Please help...

noodles

ongelezen,
1 dec 2009, 10:05:2601-12-2009
aan asp-ajaxed
Heya Freeky --

It's a common pattern/problem w/ all ajax apps, not just yours, or
ajaxed in particular. As you already know, basically, you're making
changes to a page but not saving the history like in full page loads
so the browser has no record of the changes to go 'back' to....

...thus, you'll have to code up a new bit of module for ajaxed to
solve it. But it's very common and been done before in lots of other
languages. If you know another language you can basically borrow an
idea/code/pattern from them.

probably the easiest thing to do is find someone who handles this
problem using the same javascript Lib as ajaxed uses-- Prototype.js


This will get you going on the general issues (i.e. you probably dont
want ALL calls to be added into history so you'll need a 'selection'
system):
http://www.theserverside.com/news/thread.tss?thread_id=38725

Here's some prototype.js specific solutions:
http://www.google.com/#q=prototype+ajax+back+history

Here's some general solutions in a bunch of js libs and languages,
take your pick of some code/pattern you'd like to mimic and translate
to prototype -- if none of the proto solutions above, are what youre
after:
http://www.google.com/#q=ajax+back+history

Also if you do come up with a working solution -- please come back
here and share it with others (at least the algo of how you solved
it). It sounds like a very useful addon to ajaxed.

Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten