Forum Moderators: phranque

Message Too Old, No Replies

opener.location issues

my parent target isn't working correctly.

         

comaiwat

6:15 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



Hi everyone..

I seem to be having some problem with a pop up windows content's link. I want it to link back to the parent windows. I got it to work, however my link is on top of the template that already exist. If you're confused you can see an example of it here at.

<url snip>
--go to the third column very close to the bottom > Need a quote on a pump? click on this link..
--now a pop up windows should appears. Below the maps is some link, click on Redi-Flo2 or Redi-Flo4. This is where I want it to go back to the parent windows. Which it does but it is inside the man frame or template.

The code I used for the link is <a href="javascript:;" onClick="opener.location='http://www.mydomain.com/Web/HomeUs.nsf/Webopslag/PAVA-58MKU3'">Redi-Flo2 and converter</a>

Any suggestion would be helpful..

--thanks,
ott

[edited by: oilman at 9:19 pm (utc) on July 25, 2003]

vincevincevince

6:32 pm on Jul 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



at the top of your pre-exisiting template framespage, put:
<script language="javascript">if (top.location!= location) { top.location.href = document.location.href; }</script>

korkus2000

6:33 pm on Jul 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried opener.top.location=?

comaiwat

6:50 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I've tried top.opener.location and I believed I also tried top.self.opener.location anyhow it didn't work for me. What I will try is a suggestion from vince. I'll keep you posted.

comaiwat

6:58 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I use the code that vince gave me and when I tested out the framed page it just refreshes in a loop, I had to click on the browser stop to stop the process. Humm.. Anything else in the sleeves?

devvie

7:30 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I believe the questionmark in Korkus's remark isn't meant to inquire whether you did it or not. It means that this is the way to do it:

opener.top.location="..."

The correct order is first 'opener' and then 'top'. And never both 'top' and 'self'.

<John DeVie />

comaiwat

8:31 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I'm giving it a shot now with opener.top.location= it takes some time to replicate to the web. I'll check back with the result. I sure hope this work, as long as it doesn't fall in the parent frame I'll fine with that. I'll keep you posted.. thanks.