[wdvltalk] Re: Setting focus to existing pop-up window

2003-01-07 Thread Ross Clutterbuck
Cheers BJ... I think I might know where my problem is so I'll see tomorrow, but here's the theory: In my code I check to see if a window exists (i.e. if the container variable has anything in it). If it does then change the href and then focus(), otherwise open() a new one and assign the variable

[wdvltalk] Re: Setting focus to existing pop-up window

2003-01-07 Thread Bj
- Original Message - From: "Ross Clutterbuck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 07 January 2003 22:42 Subject: [wdvltalk] Re: Setting focus to existing pop-up window > > use w=window.open() and save the reference in > > w. Then you

[wdvltalk] Re: Setting focus to existing pop-up window

2003-01-07 Thread Ross Clutterbuck
> use w=window.open() and save the reference in > w. Then you can use w.focus() or w.close() etc That's what I've been doing, but it's not working... How about a code sample so I can compare, BJ? MOU __ Do You Yahoo!? Everything you'll ever nee

[wdvltalk] Re: Setting focus to existing pop-up window

2003-01-07 Thread Bj
> Could just be me not looking at things properly, but I've tried > windowName.focus() to no effect - cheers anyway. If you look at my code I don't use windowname.focus When you open a window, the window.open() function returns an object which is a reference to the new window, so instead of usi

[wdvltalk] Re: Setting focus to existing pop-up window

2003-01-07 Thread Ross Clutterbuck
Could just be me not looking at things properly, but I've tried windowName.focus() to no effect - cheers anyway. I'm gonna go back to it tomorrow and double-check I've named things properly and stuff...I'll post code up if I can't get the thing to work. MOU __