Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > ASP.NET Popup Windows

Reply
Thread Tools

ASP.NET Popup Windows

 
 
Mario
Guest
Posts: n/a
 
      10-17-2005
Need help with creating a popup windwo in ASP.NET when I load a page?

This is what I have so far

<SCRIPT language="javascript">
function OpenWindow()
{
var x =
window.open('MRFilingStatus.aspx','FS','width=425, height=200,resizeable=yes,menubar=0,toolbar=0')
x.focus
}
</SCRIPT>

Then in my body tag I have "onload=OpenWindow"
<body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
topmargin="0">



 
Reply With Quote
 
 
 
 
S.M. Altaf [MVP]
Guest
Posts: n/a
 
      10-19-2005
First, please avoid posting the same question in different places. You'll
get the same answer from different people, and often they'll end up
conflicting, or they'll confuse you. In some cases they might even open up
a wormhole in the time space continuum which might collapse upon itself.


<SCRIPT language="javascript">
function OpenWindow()
{
var x =
window.open('MRFilingStatus.aspx','FS','width=425, height=200,resizeable=yes,menubar=0,toolbar=0');
}
</SCRIPT>

<body MS_POSITIONING="GridLayout" onload="OpenWindow();" leftmargin="0"
topmargin="0">


That should work.

S.M. Altaf
[MVP - VB]

--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com


"Mario" <(E-Mail Removed)> wrote in message
news:n7_4f.13237$(E-Mail Removed)...
> Need help with creating a popup windwo in ASP.NET when I load a page?
>
> This is what I have so far
>
> <SCRIPT language="javascript">
> function OpenWindow()
> {
> var x =
> window.open('MRFilingStatus.aspx','FS','width=425, height=200,resizeable=yes,menubar=0,toolbar=0')
> x.focus
> }
> </SCRIPT>
>
> Then in my body tag I have "onload=OpenWindow"
> <body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
> topmargin="0">
>
>
>



 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      10-20-2005
You must include the parenthesis in the function call as they are part of
the function's name.


"Mario" <(E-Mail Removed)> wrote in message
news:n7_4f.13237$(E-Mail Removed)...
> Need help with creating a popup windwo in ASP.NET when I load a page?
>
> This is what I have so far
>
> <SCRIPT language="javascript">
> function OpenWindow()
> {
> var x =
> window.open('MRFilingStatus.aspx','FS','width=425, height=200,resizeable=yes,menubar=0,toolbar=0')
> x.focus
> }
> </SCRIPT>
>
> Then in my body tag I have "onload=OpenWindow"
> <body MS_POSITIONING="GridLayout" onload="OpenWindw" leftmargin="0"
> topmargin="0">
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watir Javascript popup handler: How to handle the popup dialog? Rajesh Ruby 0 07-31-2007 04:36 AM
ASP.NET JavaScript Popup, No Popup Using Back Button dapkniht ASP .Net 1 03-08-2006 08:49 AM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
trigger event on opener from popup when closing it or run opener script from popup Urs Gubler Javascript 0 07-02-2003 02:08 PM



Advertisments