Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Modal Window


Message #1 by williams@s... on Wed, 19 Sep 2001 12:03:48 -0400

Hi,



I able to open pop up window using



oWindow = window.open ("abc.asp")



this pop up window returns two values to parent window after closing the

pop up window.



I am trying to make this pop up window in modal and full screen. I know

there is showModalDialog, but I can't make it work.



Would anyone can help.



Thanks

William



Message #2 by Pappas Nikos <pappas@c...> on Wed, 19 Sep 2001 22:10:00 +0300
this works for full screen

Making it modal could give some problems with forms or dropdown lists

Not very sure about this but happened to me.

I hope it will help

Cheers

Nikos

<HTML>

<HEAD>



<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function fullScreen(theURL) {

window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');

}

//  End -->

</script>

</HEAD>

<BODY>



<a href="javascript:void(0);" onClick="fullScreen('demo.htm');">Open Full Screen Window</a>



</BODY>

</HTML>

At 12:03 לל 19/9/2001 -0400, you wrote:



>Hi,

>

>I able to open pop up window using

>

>oWindow = window.open ("abc.asp")

>

>this pop up window returns two values to parent window after closing the

>pop up window.

>

>I am trying to make this pop up window in modal and full screen. I know

>there is showModalDialog, but I can't make it work.

>

>Would anyone can help.

>

>Thanks

>William

>

>

Message #3 by Pappas Nikos <pappas@c...> on Wed, 19 Sep 2001 22:14:53 +0300
Sorry forgot the modal opening

You can use this



<body onblur="self.focus();">



put this in the body tag

Nikos

At 12:03 לל 19/9/2001 -0400, you wrote:



>Hi,

>

>I able to open pop up window using

>

>oWindow = window.open ("abc.asp")

>

>this pop up window returns two values to parent window after closing the

>pop up window.

>

>I am trying to make this pop up window in modal and full screen. I know

>there is showModalDialog, but I can't make it work.

>

>Would anyone can help.

>

>Thanks

>William

>

>

>

Message #4 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 20 Sep 2001 11:07:13 +0100
thats fine for a window containing plain test, but if you have a form, 

every

time you try to focus on a form element it will not work



-----Original Message-----

From: Pappas Nikos [mailto:pappas@c...]

Sent: 19 September 2001 20:15

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Modal Window





Sorry forgot the modal opening

You can use this



<body onblur=3D"self.focus();">



put this in the body tag

Nikos

At 12:03 =EC=EC 19/9/2001 -0400, you wrote:



>Hi,

>

>I able to open pop up window using

>

>oWindow =3D window.open ("abc.asp")

>

>this pop up window returns two values to parent window after closing 

the

>pop up window.

>

>I am trying to make this pop up window in modal and full screen. I 

know

>there is showModalDialog, but I can't make it work.

>

>Would anyone can help.

>

>Thanks

>William

>

>

>







Message #5 by williams@s... on Thu, 20 Sep 2001 11:37:26 -0400
Yes, the self.focus() does not work for form element. User unable to input

into text field.



Any other suggestions?



William

thats fine for a window containing plain test, but if you have a form,

every

time you try to focus on a form element it will not work



-----Original Message-----

From: Pappas Nikos [mailto:pappas@c...]

Sent: 19 September 2001 20:15

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Modal Window





Sorry forgot the modal opening

You can use this



<body onblur="self.focus();">



put this in the body tag

Nikos

At 12:03 =EC=EC 19/9/2001 -0400, you wrote:



>Hi,

>

>I able to open pop up window using

>

>oWindow = window.open ("abc.asp")

>

>this pop up window returns two values to parent window after closing t

he

>pop up window.

>

>I am trying to make this pop up window in modal and full screen. I kno

w

>there is showModalDialog, but I can't make it work.

>

>Would anyone can help.

>

>Thanks

>William

>

>

>





Message #6 by Pappas Nikos <pappas@c...> on Fri, 21 Sep 2001 09:26:25 +0300
Hi Alex

That's very correct

and this is what I was trying to say in my previous mail

Alex is there any other way for modal window?

If you know any please let me know

Best regards

Nikos

At 11:07 נל 20/9/2001 +0100, you wrote:

>thats fine for a window containing plain test, but if you have a form, every

>time you try to focus on a form element it will not work

>

>-----Original Message-----

>From: Pappas Nikos [mailto:pappas@c...]

>Sent: 19 September 2001 20:15

>To: ASP Web HowTo

>Subject: [asp_web_howto] Re: Modal Window

>

>

>Sorry forgot the modal opening

>You can use this

>

><body onblur="self.focus();">

>

>put this in the body tag

>Nikos

>At 12:03 לל 19/9/2001 -0400, you wrote:

>

>>Hi,

>>

>>I able to open pop up window using

>>

>>oWindow = window.open ("abc.asp")

>>

>>this pop up window returns two values to parent window after closing the

>>pop up window.

>>

>>I am trying to make this pop up window in modal and full screen. I know

>>there is showModalDialog, but I can't make it work.

>>

>>Would anyone can help.

>>

>>Thanks

>>William

>>

>>




  Return to Index