Hi
I had a look to your code. few things
First I tink you should add a "var" before your "win = new Window
(winid, options);"
Then about window.frames[winname].do_save is not a function that's
weird but I have to say that I had
an hard time to understand your code. You are going back and forth
from the parent window and the frame.
What I suggest is to use an observer for the close button, it will be
cleaner.
About the URL, do you really need an url? URL is fine if your open
something that is not in your server, else I
will suggest to use ajax. Personnaly, I do not like iframes.
HTH
Seb
On Dec 20, 2006, at 3:43 AM, Will Merrell wrote:
I have been using PWC for a couple of months and am generally very
satified with it. This problem, however, has me baffled for several
days
now so I thought I would though it out to a wider audience and see if
anybody has any idea what is going on.
I have posted a test page that shows the problems. It is located at:
http://www.coaching-life.com/testwindow/
Heres how to produce the problem.
1) Go to the page.
2) Click the [Open First] button.
3) On the first window, click the [Open Second] button.
4) Observe that the second window opens correctly and is positioned
above (laying overtop of) the first window.
5) Click on the red x button to close the second window.
6) Observe that the second window closes normally.
And now the problem will show up.
7) On the first window, click the [Open Second] button again.
8) Observe that the second window opens correctly BUT is positioned
below (laying beneath of and obscured by) the first window.
This happens on all browsers that I have tested. These include Firefox
2.0, IE7, and Opera 9.
The second window appears to work properly, but I cannot get it to
raise
above the first window.
Furthermore, on Firefox I see two additional problems. The first is
that
when the second window is dragged around under the first window, the
first window is distorted, like it is being smeared around in the area
where they overlap. This does not happen when the window is opened for
the first time. (steps 3 & 4) Sometimes this will crash Firefox.
The second problem on Firefox is a show stopper for me. In Firefox,
after step 8, click on the red x button to close the second window
again. The script will crash and Firebug will report:
window.frames[winname].do_save is not a function
The second window can not be closed.
I cannot figure out why it does these things. I suspect that these
problems are related, but I don't know what is going on.
Does anyone know what is going on?
-- Will Merrell
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com