javascript window.open() help needed

Sphexi

Diamond Member
Feb 22, 2005
7,280
0
0
I have a site that has a frameset, and several frames. One of these frames hosts a search field that currently does a _blank for a target for the results page.

What I'd like is to click something in that search page, and have the page it opens target a frame in the original (opener) window.

I understand because I'm using _blank in my HTML it's not currently possible, so I tried using javascript to open the popup, then target the opener.frames['framename'] in the popup to get back to the original window.

In both IE/Chrome they both open new windows when I click the link in the popup.

Am I missing something obvious? I'm pretty bad with javascript, I honestly don't use it too much.
 

Woosta

Diamond Member
Mar 23, 2008
3,006
0
71
1. I suggest you stop and never, ever use framesets. Ever.
2. Can you include the relevant code snippets and/or a link to said page? And/or do your best to reproduce them.
 

KIAman

Diamond Member
Mar 7, 2001
3,342
23
81
You want a link from one frame to open in another frame?

Instead of target="_blank" do target="FRAME".

Was there a specific requirement to leave target as blank?
 

Sphexi

Diamond Member
Feb 22, 2005
7,280
0
0
You want a link from one frame to open in another frame?

Instead of target="_blank" do target="FRAME".

Was there a specific requirement to leave target as blank?

Thank you for answering. I did try that, and in Chrome/IE8 it works fine, but FF doesn't quite like it. Remember that the link is in a new window, not just another frame. It's basically search results that pop-up, but when you click something in it I want it to load in the original window (in a specific frame).

This is a very small environment, about 12 users total, and I'm writing this between doing actual work, so with my limited knowledge/skill/time/resources I'm stuck doing it as is.

I think our solution will be to get the FF users to just install IE Tab v2 and set it to load all internal pages with IE instead of the FF renderer. We have other older software that works only in IE anyways, so this isn't a huge deal.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
you could do something along the lines of this, not tested so syntax is probably off:

this.parent.frame.location = new URL

or more gracefully have a do_navigate( url ) function in the parent that does the location setting so the code is less brittle.

this.parent.do_navigate( link )
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |