I had to use a modal window and keep it "alive". With IE, you can't - the
modal window refuses to receive the request, and it creates a new window.
So, I used a normal window, slimmed it down to look like a modal. I also
added some pretty nifty JavaScript that makes it "act" modal - if you
attempt to click on the parent, the "modal" window appears. But I did allow
users to minimize it - but without the ability to get back at the parent, it
truly is modal - you can't create another one without closing it first.
CP.
-----Original Message-----
From: Shawn Sohl [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 9:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Calling Servlet from window.showModalDialog
We have tried this but the point of the calling a page with the
.showModalDialog is to be able to receive information back from the modal
page. If you close the page you have just lost the link to it from the main
page and will then not be able to get back information.
Thanks for you input though.....
-----Original Message-----
From: sumit deogharia [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 6:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Calling Servlet from window.showModalDialog
Hi
Try this out:
when u submit the data from the window using javascript shut down the
window.... the command probably is self.destroy()... pl check this out. I
think if u do this then the next time the same window will get displayed but
the previous window will get deleted
Sumit
On Thu, 12 Oct 2000 14:28:44 -0500, A mailing list for discussion about Sun
Microsystem's Java
Servlet API Technology. wrote:
> I am having a problem and need some clarification. I am calling a
servlet
> with the window.showModalDialog method. The servlet gets called and
writes
> back HTML back to the modal window. Now within the modal window the user
> will enter in some data and then hit the "Submit" button. The "Submit"
> button is actually in a "<Form>" tag. The action of the form tag calls
the
> same servlet I called with the "Window.showModalDialog". Now the servlet
> will take the data and save it and then write some HTML back.
>
> Now the problem. When the servlet writes the HTML back a new window gets
> loaded on the client. So now I have my original page, the modal window,
and
> now a window with the HTML I passed after the "Submit" process.
>
> So there is some restriction with using .showModalDialog.
>
> Thanks
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
_______________________________________________________
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html