ishnj Posted January 30, 2007 Share Posted January 30, 2007 Our website is currently using AJAX to navigate through the pages without reloading the whole page over and over again if you click on next/previous or a page number (1|2|3|4.etc).Now the problem with AJAX is that when you click on your browser's back button, instead of going back to which page you were on the AJAX page, you get sent back to the last page in your browser history instead.So we were able to fix this AJAX back button issue by having the #pg1/2/3/etc attached to the end of the url (not by link but by the ajax). What this does is that it just reminds ajax which part of the ajax page we are currently in, and instead of using the browsers history it creates its own history so that when you click on your browser's back/forward button, the ajax remembers which page you were in.Now the problem is with Search Engine Indexing. Dynamic pages are often ignored by the search engine spiders. In fact, any URL containing special symbols like #, a question mark (?) or anampersand (&) will be ignored by many engines. How can we spoof the back button for the search engines without using '#' symbol in the URL? Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 30, 2007 Share Posted January 30, 2007 You could add HREFs to the URLs, and have a none-AJAX backend for search engines and non-AJAX users. Quote Link to comment Share on other sites More sharing options...
ScotDiddle Posted February 1, 2007 Share Posted February 1, 2007 ishnj[quote]So we were able to fix this AJAX back button issue by having the #pg1/2/3/etc attached to the end of the url (not by link but by the ajax). What this does is that it just reminds ajax which part of the ajax page we are currently in, and instead of using the browsers history it creates its own history so that when you click on your browser's back/forward button, the ajax remembers which page you were in.[/quote]Would you please elaborate on exactly what you did to accomplish this ?Having a "broken" back-button is one of my biggest gripes about using AJAX.Thanks, Scot L. Diddle, Richmond VA Quote Link to comment Share on other sites More sharing options...
worldworld Posted February 2, 2007 Share Posted February 2, 2007 Are the page nos. dynamic in nature ? Quote Link to comment Share on other sites More sharing options...
artacus Posted February 2, 2007 Share Posted February 2, 2007 I think google's ajax library has addressed this issue. You could see how they did it or start using their library. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.