Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2003, 08:56 PM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
Help with javascript

Hey all,

I need some help with this.

I have a site I have designed and my client would like his popup to close and redirect the parent by clicking a link or image.

The only problem is that the site is made with frames. The particular page he wants to be redirected to should be in the frame not by itself.

Is there a way to redirect it to the frame and have a specific page load into it?

I'll try to be more clear:

I want the link on the popup to say: Click here for details

And I want that to go back to the parent: /index.htm with: /kushfilmfest.html in the frame, and the popup to close.

Link to Site

I can make the popup close when the link or image is clicked, but I cant get the parent to go to the specific page IN the site main frame.

I have searched for days looking for the answer to this. I'm cool with telling my client that it cant happen, but would rather get it working.

Thanx for any help.
Reply With Quote
  #2  
Old 10-27-2003, 09:19 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,933

Don't exactly know if it works with frams, but add the target maybe it will work.

<a href="javascript:window.opener.location.href='_URL _';window.close()">_IMG OR OTHER_</a>

Frame maybe this will work, added target=""

<a href="javascript:window.opener.location.href='URL' ;window.close()" target="FRAME_NAME">IMG OR OTHER</a>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 10-27-2003, 09:28 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,933

Another Way:

<a href="#" onclick="parent.FRAM_NAME.location.href='FILE_NAME ;window.close()'">Test</a>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #4  
Old 10-27-2003, 09:35 PM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
Thanx man. I'll try those now.
Reply With Quote
  #5  
Old 10-27-2003, 10:48 PM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
Ok I used your code and made a change to the way I had it set up, and it works.

Thanks P.

[a href="javascript:window.opener.location.href='_URL _';window.close()"target="_top"><b><font color="#000000">Click
for Details</font></b></a]

(I used <> instead of [], of course lol)
Reply With Quote
  #6  
Old 10-28-2003, 07:30 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,933

Good deal
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript image tail_gunner Web design and Programming 2 05-27-2007 11:05 AM
Javascript BBCode insertion Lakie Web design and Programming 5 01-05-2007 03:27 AM
JavaScript Help! Webviper2006 Web design and Programming 9 02-05-2006 12:56 AM
javascript King Web design and Programming 3 01-03-2005 11:35 AM


All times are GMT -5. The time now is 01:09 PM.




Powered by vBulletin®