• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to handle showModal dialog's X button?

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ranchers,
I am using window.showModalDialog in my application,in that when submitted an action, the process takes some time to complete successfully,during the process the user is closing the window,by clicking dialog's "X" button.

How can I avoid user to use 'X' button, I want user to wait until the process completes,at present a Please wait...screen is being shown,but that is not useful as he closes the window using 'X' button.

Iam eagerly looking for some really good solution,
Thank you friends.

ramana.
 
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 not block it.

Have you looked into onbeforeunload?

Eric
 
Ramna Reddy
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,
First of all,
For all:Wish you happy new Year

Yes Eric,I have seen onbeforeunload,I knew,we can't restrict user of his rights.But, I am asking any alternative solution for this kind of problem?
anybody might have faced this,I would like to know,how they solved?

thanks,
ramana.
 
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
There is nothing you can really do other than stand there and hold the user's hand.

You can avoid modal windows and use an iframe in the parent page. Absolutely position it and do your work in there.

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

The reason for using Modal window is not to give access to underlying parent window.

ramana
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic