For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > July 2005 > Keep a Popup window open









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Keep a Popup window open
Angel

2005-07-28, 5:03 pm

I created a popup window using createPopup method. Is there anyway to keep
the popup open until the user clicks a button within the popup to close the
popup window. Right now the popup window will close if I click outside the
popup window. I do not want that to happen until the user clicks a button in
the popup window.

thanks....
snt

2005-07-28, 5:03 pm

I think you are looking for a Modal window functionality. For IE, you
need to use showModalDialog and for other browsers, you can use
window.open with parameter model=yes to open a modal window. This will
compell the user to close the window to access the parent window. Hope
this helps.

snt
http://www.onlinemall.com
http://www.flexoweb.com

Angel

2005-07-28, 5:03 pm

Thanks for the reply but I would want to use that same functionality in the
createPopup method. I do not want to create a modal form... I want to use the
Popupwindow.

thanks again.

If anyone knows if this can be done please let me know...

"snt" wrote:

> I think you are looking for a Modal window functionality. For IE, you
> need to use showModalDialog and for other browsers, you can use
> window.open with parameter model=yes to open a modal window. This will
> compell the user to close the window to access the parent window. Hope
> this helps.
>
> snt
> http://www.onlinemall.com
> http://www.flexoweb.com
>
>

Curt_C [MVP]

2005-07-28, 5:03 pm

Angel wrote:[color=darkred]
> Thanks for the reply but I would want to use that same functionality in the
> createPopup method. I do not want to create a modal form... I want to use the
> Popupwindow.
>
> thanks again.
>
> If anyone knows if this can be done please let me know...
>
> "snt" wrote:
>
>

it cant.. you need to use the Modal functionality, its why it's there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
snt

2005-07-28, 5:03 pm

Curt is right. As far as I know, it cannot be done with createPopup
method. You need to use modal dialogs to accomplish your requirement.

snt
http://www.tec-adv.com
http://www.onlinemall.com

Sreejith Ram

2005-07-29, 9:05 am

Modal window is the right method..

another method , you could try is to make the focusing itself.. sample code
is in belwo link .. havent tried it..
http://www.irt.org/script/66.htm


"Angel" wrote:
[color=darkred]
> Thanks for the reply but I would want to use that same functionality in the
> createPopup method. I do not want to create a modal form... I want to use the
> Popupwindow.
>
> thanks again.
>
> If anyone knows if this can be done please let me know...
>
> "snt" wrote:
>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com