• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Using ModalDialogs instead of Window.open for popups

 
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

We have a big webapplication with innumerable popups in our application and we have support only for Internet Explorer . With the increased complexity and troubles faced by using window.open , we are planning to replace them with the modal dialogs which included changes in major amount as the interacation between the pareny and the popup differs a lot ....

is that a good idea to adopt to these Modal Dialogs ?? And the complexities which we faced while using the normal popup is

1. User opening multiple popups and not closing them ...(Ofcouse now we had adopted the strategy of opening the same window when the user clicks the same popup link again)
2. On Clicking the button in the popup , we need to pass the data to the parent and then refresh that ...But if the user has done some operations in the parent , the parent window object is lost thus making the operation a failure .

and many more..
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
modal windows give you a very easy method to pass data back and forth too. Take a look at these examples here: http://www.faqts.com/knowledge_base/view.phtml/aid/876/fid/129

Eric
 
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
Hi eric

Thanks for the info . But do u agree with the limitations which i mentioned in the above post , with regards to normal window.open() because there might be a way to overcome them too despite of going for Modal dialogs
 
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
I use both in all of my applications. If input is required then I use a modal window. Sometimes you need to forse people to use it. For regular pop ups, you can make the parent close them when it regains focus. That means you do not have to worry about windows just sitting there unused.

I been even getting away from modal windows and using dynamically positioned iframes, but that s a different story.

Eric
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic