_parent

Just a quick question. A browser spawns a popup site map. When you click on a link in the site map, the link should open in the first browser window and the focus switches back to the original.

I figured that setting the link target to _parent should work for opening the page in the first browser as you’re linking from the child, but needless to say it doesn’t.

Any quick fixes out there?

Can you use the focus function to switch to the original browser window.

else Parent.document.href = URL

Try this not to sure of its success rating but can it hurt to try?

Uhmm… have you tried with window.opener, Kit? :slight_smile:

window.opener.location = "URL";

Focus might do it, I’ll give it a try. :slight_smile: I mean, this is what the link is at the moment:

<a href="../../products/motor/car_getquote.htm" target="_parent" class="textpurplemini">Car 
          quotes</a>

Which I thought ought to do it alright… I’ve not really had much cause to use all this before, since I loathe popups, but the powers that be have decreed that it must be so… :sure:

*Originally posted by kode *
**Uhmm… have you tried with window.opener, Kit? :slight_smile:

window.opener.location = "URL";

**
Er, no, I haven’t. :blush:

It’s so dumb, I’ve never had cause to use this before. And how do you reference the main window (obviously the popup is named, but the main one isn’t). Is _parent the right way?

God, must be “Stupid Question From Kit Day”. That or it’s my flu. Either way… :slight_smile:

*Originally posted by Kitiara *
**but the powers that be have decreed that it must be so… :sure: **

Poor Kitiara some days you’re the Salmon and the stream is awefully long huh

:trout:

“awefully long” how English

Its Friday I just got paid and yet I’m cronically depressed - there’s something very wrong about that

“Remember, you are not a salmon.” :stuck_out_tongue:

I too am chronically depressed (and not paid till the 31st). Building teh entire Churchill website all over again by the end of today, a thousand and one little bug fixes to make, plus I can’t even remember simple JavaScript now… :a:

Right, window.opener…

Well, I don’t know if this is the right way or not (I’m an ActionScript guy, you know ;))… but it works:

<a href="java****script:window.opener.location='../../products/motor/car_getquote.htm',window.opener.focus();" class="textpurplemini">Car quotes</a>

[edit]Seriously… I think we should stop posting at the same time!! It’s confusing! :crazy:[/edit]

Hmmm, lets try that…

Nope, not liking that, displaying ‘Page Not Found’ in the popup window.

I get the window.opener, but what’s the "about : " bit for exactly? I’ve never come across this…

[EDIT] Ah, hang on, you changed that! I’ll try again… :slight_smile: [/EDIT]

Time for another simultaneous post no doubt… :slight_smile:

That works perfectly, thanks. :slight_smile: Hugs I really ought to have thought of this. I’m so frazzled right now I can barely remember my own name… :stuck_out_tongue:

Sorry… it was supposed to read javascript but I forgot about the forum thing replacing that word. :stuck_out_tongue:

I didn’t fix it immediately because I broke one of my fingers a few hours ago and I can’t type faster!! :frowning:

AIEEEE! I knew that was going to be a double post!!! :stuck_out_tongue:

Of course, I too forgot the forum changes it for some bizarre reason… I was wondering what about: was… Duh, silly me. :slight_smile:

Eek @ the finger, btw. What on earth did you do to it Well, broke it, obviously, but you know what I mean… :slight_smile:

LOL @ Kit :stuck_out_tongue:

Ehmm… I broke it playing football with some friends, I was the goalkeeper. :beam:

Ah… I had a friend who had that happen. For once, nothing to do with me. :slight_smile: Someone else volleyed the ball as hard as he possibly could, keeper went to catch it, ball flew past and took half his fingers with it… :sure:

Hope they get better soon. And thanks for the fix. :slight_smile:

You’re very welcome, Kit. :love:

Something like that happened to me, it was worth it though… we won! :stuck_out_tongue:
And I hope so too (it’s really annoying!), thanks. =)

*Originally posted by Kitiara *
**“Remember, you are not a salmon.” :stuck_out_tongue:

I too am chronically depressed (and not paid till the 31st). Building teh entire Churchill website all over again by the end of today, a thousand and one little bug fixes to make, plus I can’t even remember simple JavaScript now… :a:

Right, window.opener… **

Ok old I know but just think of the mahoney

Oh yes yes yes

feint smile

Awww i’m late, I totally knew the answer to this too :frowning:

Kax is always stealing my threads… :bad:

hehe, just kidding :blush: (about the thread stealing)

Me? Stealing your threads!? Shame on you…

Where the hell are you when we need you!? :stuck_out_tongue:

:wink:

Down the pub I’m guessing!

I know :frowning: Sorry :frowning:

They need to start making grills with built in computers so I can surf while cooking at work!!!

Oh, that steak isn’t done yet, let me post for a bit on the GrillMaster PC