Guardian-Mage Posted July 3, 2007 Share Posted July 3, 2007 I have an AJAX Driven website at www.GuardianTechnology.co.nr Instead of loading a new page when a link is clicked it updates the existing one. So it doesn't change the url. I need it so when I press refresh, the page the user is currently visiting will still reload. The url is always http://guardiantechnology.co.nr/ even when viewing http://guardiantechnology.co.nr/employee.php. So whenever you refresh it goes back to index.php. Is there any way I can change this with php or javascript. I was trying to change the url with javascript but I didn't know how. Quote Link to comment https://forums.phpfreaks.com/topic/58207-changing-the-url/ Share on other sites More sharing options...
wildteen88 Posted July 3, 2007 Share Posted July 3, 2007 Set a cookie in javascript which holds the page name when they load a page. Then when the user access index.php have your script load the cookie just set and load the previous page that was loaded. Quote Link to comment https://forums.phpfreaks.com/topic/58207-changing-the-url/#findComment-288925 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.