I have many popups in my webapplication(Even though i tried restricting them as its always pain with the popups) ......and i am facing a problem which most of you might be aware of....
When the user opens a popup, and then he comes to the main page and refreshes that and he submits the popup which need to pass some data to the parent window (or might need to pick data from parent window)
Hence the parent window is getting lost .how can i prevent this with out changing the window.open to modal window( because i need to modify my code lot to support modal windows and this wont work in netscape too)
Is there anyway ?? i tried using self.focus() on the onblur event of the popup jsps .....but thats not allowing me to enter the fields in that page (as it keeps on focussing that popup)
Can any one suggest me a better way of handling this ??
Try this, I know it works with Mozilla, IE, and Firefox
Eric [ May 24, 2005: Message edited by: Eric Pascarello ]
Joined: Sep 21, 2003
how can i prevent this with out changing the window.open to modal window( because i need to modify my code lot to support modal windows and this wont work in netscape too)
window.showDialog is nothing but a modal dialog right ?? the problem is t he way in which the data in transferred from child to parent differs a lot if i use that window.showModalDialog() .........so i need to change in lot of places
and i am sure that the window.showModal wont work in Netscape
Joined: Nov 08, 2001
You can try something like this, but it is not a great solution: