Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Site map in pop up window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedSite map in pop up window

 Post Reply Post Reply Page  123>
Author
dotty View Drop Down
Groupie
Groupie


Joined: 19 March 2002
Location: Ireland
Status: Offline
Points: 61
Direct Link To This Post Topic: Site map in pop up window
    Posted: 08 July 2003 at 2:40pm

Hi,

I would like to have a site map on a pop up window - does anybody know how to get the links from the pop up map to change the pages on the existing parent window rather that opening new windows?

I'd really appreciate help on this,

ta

bear with me....
Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Direct Link To This Post Posted: 11 July 2003 at 3:54pm

I am in the same boat as you, let me know if you find out.

www.kasl.info

The PHP/MySql Web Development site
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Direct Link To This Post Posted: 12 July 2003 at 3:55am

i think i know what you want just just to clarify.

you have the site map in a pop up window.

say you have a link in the pop up window called about us ...

when you click thelink "about us" in the pop up window you want the parent window to take you to the about us page.

do you want the ste map window to close as well??

if what i just stated above what you want you can use the code below.

 

<script language="JavaScript">

//Function to open link in main window
function openInMainWin(winLocation){
 window.opener.location.href = winLocation
 window.opener.focus();
 window.close();
}
</script>

the link should look like this

<a href="javascript:openInMainWin('Licence.asp)">
              Click Here</a>

if you have any problems reply back

Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Direct Link To This Post Posted: 12 July 2003 at 10:05am

AMAZING!!!!!  Thank you very much, it worked exactly the way I wanted.  You wouldn't beleive how many hours I spent searching for that code.

The crazy thing is that I had the code in the <script></script> tags, just not at the links.

Again, thank you very much!

www.kasl.info

The PHP/MySql Web Development site
Back to Top
abhinav View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: India
Status: Offline
Points: 63
Direct Link To This Post Posted: 12 July 2003 at 11:19pm
nice find .. i can use it too!
Back to Top
dotty View Drop Down
Groupie
Groupie


Joined: 19 March 2002
Location: Ireland
Status: Offline
Points: 61
Direct Link To This Post Posted: 13 July 2003 at 1:02pm

Thanks dj air - that is a really useful script - you're a genius!

kasl_33 - is that a mug shot or a holiday snap?

bear with me....
Back to Top
dotty View Drop Down
Groupie
Groupie


Joined: 19 March 2002
Location: Ireland
Status: Offline
Points: 61
Direct Link To This Post Posted: 13 July 2003 at 1:03pm
Do I change to a groupie when I hit the 40 mark?
bear with me....
Back to Top
dotty View Drop Down
Groupie
Groupie


Joined: 19 March 2002
Location: Ireland
Status: Offline
Points: 61
Direct Link To This Post Posted: 13 July 2003 at 1:04pm
Hey - I did!!
bear with me....
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.