Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
05-08-2013, 08:34 AM #1
- Join Date
- May 2013
- Thanked 0 Times in 0 Posts
Open link in new window, but make it just like opening in original window
I have an index.php that loads a page.php into a #result div. Page.php in turn has its own links and I have it so that when you click on one of these links it loads the respective page into the SAME #result div. Similarly that loaded page might have its own links and I want to continue loading content into the same div. The code for this is as follows:
Say page.php has a link to page2.php.
At the moment when I open the link to page2.php in a new window, it opens as page2.php. Same if I type the url to page2.php directly into my browser. I want it so that it opens as index.php but with page2.php loaded into its #result div(a duplicate of clicking the link normally in the original window).
How do you do this?? I have tried lots of things including setting a session variable and passing to loadPage, but nothing seems to work.
05-08-2013, 06:40 PM #2
- Join Date
- Jun 2002
- Thanked 256 Times in 252 Posts
05-09-2013, 12:53 AM #3
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.