Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 11-04-2008, 11:55 AM AJAX and PHP help
Junior Talker

Posts: 1
Trades: 0
Hi, I am designing an online shop website. It has a header, a top navigation, a left navigation, an area for displaying product information (an DIV called prod_div), and a footer. Right now, I an using javascript AJAX and PHP to refresh the prod_div so that other area stay put to give user a better browsing experience. The javescript call a PHP script, with connects to MySQL db and generate a webpage on the fly based on parameters passed to it. But the problem with this is that the back button will not work in cases that the user want to go back to the products he just viewed. What is an alternative for this?

Thanks for your help.
marbleds is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-04-2008, 06:40 PM Re: AJAX and PHP help
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
That's just how Ajax works. Since you haven't really left the page, there's nothing to click back to. There are solutions. If you search for 'ajax back button' or something similar you should see a lot of results.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 11-06-2008, 01:54 AM Re: AJAX and PHP help
Average Talker

Posts: 25
Trades: 0
Write the go back function yourself.
Use an array to record the history and put a "Go back" button in the page.On click the button,you can get the php page again use the data you stored.
__________________
Impossible means I'm possible.
softhink is offline
Reply With Quote
View Public Profile
 
Old 11-06-2008, 05:32 AM Re: AJAX and PHP help
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Or leave a breadcrumb trail showing their path to the current page, not quite as good as an actual back button but maybe worth implementing.
stoot98 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to AJAX and PHP help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13060 seconds with 12 queries