Pramit Posted August 28, 2008 Share Posted August 28, 2008 Hi! In AJAX, after I call a new page and then refresh the page, original file is restored. I need a way to dynamically change the url when a new file is called. I tried using #. But I cant solve the problem. Please help. Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/ Share on other sites More sharing options...
haku Posted August 28, 2008 Share Posted August 28, 2008 It's not easy by any means. Here is some info on how to do it: http://ajaxpatterns.org/Unique_URLs Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-627464 Share on other sites More sharing options...
Pramit Posted August 28, 2008 Author Share Posted August 28, 2008 Thanks for your suggestion. I tried using window.location.hash, but again it is having the same problem Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-627489 Share on other sites More sharing options...
Ken2k7 Posted August 28, 2008 Share Posted August 28, 2008 I don't understand the problem. Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-627605 Share on other sites More sharing options...
Pramit Posted August 29, 2008 Author Share Posted August 29, 2008 I need to change the url as in trulia.com. It uses AJAX, but still changes the url. I dont need URL rewriting though Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-628447 Share on other sites More sharing options...
Ken2k7 Posted August 29, 2008 Share Posted August 29, 2008 I need to change the url as in trulia.com. It uses AJAX, but still changes the url. I dont need URL rewriting though I still don't understand. Can you provide an example? Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-628453 Share on other sites More sharing options...
haku Posted August 29, 2008 Share Posted August 29, 2008 Everything you need to do this is in that document I linked to. As I said, it's not easy. But that is how it is done. Link to comment https://forums.phpfreaks.com/topic/121626-ajax-url-problem/#findComment-628489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.