Ajax and the Back button

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Ajax and the Back button

Post by heinscott » Tue Dec 09, 2008 4:06 pm

Quick question...
I have created a custom pool builder in my store. In it, I am updating querystrings before doing partial postbacks in order to keep variables straight, like temporary basket id, the step I am on, etc.
The problem I am having now is this...
After the temp basket is added to the real shopping cart, if the customer hits the "back" button, the ajax page starts over from the first step (which wouldn't be bad), but stalls out the first time a new item is selected, due to a uninitialized object.
Now, this wouldn't be hard if somehow I could update client browser history to show the last step I left off on, or, if asp .net could recognize that the page was navigated to via the back button.
I am completely inexperienced in this particular problem. I just thought I would post it here in case anyone has had (and hopefully fixed) difficulties of this sort.
Here is a link to one of my pool builder pages. http://www.poolgeek.com/CategoryGrid2.a ... goryId=818
Thanks for any help you can give me!

Scott

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Ajax and the Back button

Post by jmestep » Tue Dec 09, 2008 6:31 pm

You could do like I saw on a government website for defense contractors -- Warnings about Don't Hit the back Button!!
I don't know if it will help, but I thought I read that .net 3.5 handles the back button better for Ajax, or maybe I read that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: Ajax and the Back button

Post by heinscott » Wed Dec 10, 2008 8:30 am

With 3.5 and extensions, there is an option for scriptmanger to allow history, essentially giving you the option to create history points that will allow for the page left off on to be the current page when navigating back.
Short of changing to 3.5, though, I need to find a solution that will work for me...
Any ideas??

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Ajax and the Back button

Post by jmestep » Wed Dec 10, 2008 1:35 pm

Nope, unless Google. I thought you had switched to .net 3.5, but looking back, I see it was your dev site.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply