Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: [flasher] Re: Test popup with NS6
From: Niklas Gustavsson
Date: Mon, 05 Feb 2001 13:00:20 -0000

the javascript window.open() function returns the window object of the
popup. Therefore, if you do like this:
<a href="javascript:window.open(blabla...)">
this means that the browser will follow the link of the result from the
function => you get the [Object] stuff...

the simplest workaround is to do like this instead:
<a href="javascript:void(window.open(blabla...))">

void takes any function result and turns it into false.

/niklas
protocol7.com


-----Original Message-----
From: Burns, Christopher A. [caburnsattasc [dot] com (mailto:caburnsattasc [dot] com)]
Sent: den 5 februari 2001 13:15
To: flasher from chinwag
Subject: [flasher] Re: Test popup with NS6


Flashers,

We had a similar problem with IE5.5 and popup windows. The popup
window would open up but the parent window would go blank with the text
"[Object]" in it. It appears that the parent is loosing its place as far as
what URL it should be at. So we used the code below on a getUrl() to store
the current location of the parent window to a variable, open the popup
window, and then set the parent window back to the original URL were it
started. It worked like a charm for us.

getURL ("javascript:var
temp=location.href;window.open('case_study.htm','check','menubar=yes,scrollb
ars=yes,resizable=yes,width=550,height=400');location.href=temp");


Good Luck

Christopher A. Burns
New Media Architect
Litton TASC - Virtual Schoolhouse
(937) 426-1040 ext 450
http://www.virtualschoolhouse.tasc.com

-----Original Message-----
From: Thorvald Neumann [neumannattse-online [dot] de (mailto:neumannattse-online [dot] de)]
Sent: Monday, February 05, 2001 2:58 AM
To: flasher from chinwag
Subject: [flasher] Re: Test popup with NS6

Hejsan!

Sunday, February 04, 2001, 11:38:33 PM, JGL wrote:
> If anyone has NS 6 and can test these pop ups, I would really appreciate
it.

Does work indeed, but the main pages vanishes and is replaced with a
nearly blank page with '[object Window]' in the upper left window
corner and the 'javascript:window.open(...)'-expression in the 'URL
field'.

I guess it is not what you really wanted... ;)

Best wishes,

Thorvald Neumann
Multimedia Developer
--
And never forget: be a triangle.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: caburnsattasc [dot] com
To unsubscribe, email leave-flasher-478996Ratlists [dot] chinwag [dot] com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:

** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: niklas [dot] gustavssonatframfab [dot] se
To unsubscribe, email leave-flasher-478996Ratlists [dot] chinwag [dot] com



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]