Thanks so much for helping with this.
<sigh> I was afraid you'd answer 1Q as you did </sigh>
For 2Q - here is a url:
http://valleywebdesigns.com/test/testt.htm
Click the link on that page, note the debug alerts and that the popup
window opens fine. For this first test, do NOT close the popup window,
simply reclick the link on the opener page. Again the popup opens nicely
and all is well. But now CLOSE the popup and click the link again.
Note the debug values in the alerts and then the js error seen in the js
Console.
That test reveals the problem to be that !gJspw3Obj.closed yields TRUE
even when the popup window HAS been closed. So then when
!gJspw3Obj.close() fires, attempting to close an already closed window,
of course the error is thrown.
So, why does Opera8 report !gJspw3Obj.closed to be TRUE when the popup
window is in fact closed?
--
e michael brandt
michael at valleywebdesigns.com
www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum
--
Martin Honnen wrote:[color=blue]
>
>
> E Michael Brandt wrote:
>[color=green]
>> I have been lurking here for some time, and now would like to ask a
>> question of you clever coders:
>>
>> My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in
>> the face of the new Opera 8. Jspw3 opens a popup window (using
>> varname=window.open(...)) but there are now two problems:
>>
>> 1) Opera8 interprets a top,left of 0,0 to be top left of the browser
>> window rather than of the entire screen, unlike the other modern
>> browsers I've run across.
>>
>> 1-Question) - is there a way to force window.open() interpret 0,0 as
>> the upper left corner of the *screen* in Opera8?[/color]
>
>
> Opera treats popup windows not as independent windows but as windows in
> another window where one window can host multiple documents (MDI). Thus
> I don't think you can use script to position or move such a document
> window outside of the boundaries of the main containing window.
> It might be possible to change the settings of your Opera browser but I
> am not sure how to do that. And of course changing the setting of your
> browser does not help if someone visits your pages with Opera and you
> want to position popups.
>[color=green]
>> 2) when my opening window's jscript attempts to close the popped
>> window using varname.close(), Opera8 throws a js error: "Type
>> mismatch (usually a non-object value used where an object is
>> required)" (This despite not attempting to close until this condition
>> has been met:
>>
>> "if
>> (varname && typeof varname=='object' && !varname.closed)
>> varname.close()"[/color]
>
>
> I can't reproduce that problem here, perhaps you can post the URL to a
> test case where we can see that problem.
>
>[/color]