• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Modal dialog for a popup

 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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 ??

Regards
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this, I know it works with Mozilla, IE, and Firefox



Eric
[ May 24, 2005: Message edited by: Eric Pascarello ]
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)

Hi eric

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
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can try something like this, but it is not a great solution:



Eric
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic