PC Review


Reply
Thread Tools Rate Thread

How to determine if browser window already open

 
 
MikeTI
Guest
Posts: n/a
 
      5th Sep 2009
Sep 5, 2009

Hi all

I am new to ASP Net and am using VS2008.

On the click of a button in a form I want to:
1. Check if the second form is already on the browser, to ensure that
another instance of the form does not display.
2. Set focus to the second form without the second form doing any postback.

I have seen some codes in the internet, but the second form does a postback.

function ShowOrderForm()
{
/* If the window doesn't exist or has been closed, open it */
if((typeof newwindow == 'undefined') ||!(newwindow.open) ||
newwindow.closed)
{
newwindow=window.open("Test05.aspx", "my_order");
}

if (window.focus) {newwindow.focus()}
}

Thank you in advance.
MikeTI

 
Reply With Quote
 
 
 
 
MikeTI
Guest
Posts: n/a
 
      5th Sep 2009
Sorry, wrong group.

!!!!!!!!

"MikeTI" <(E-Mail Removed)> wrote in message
news:4F3F99CC-0829-4CF9-AB88-(E-Mail Removed)...
> Sep 5, 2009
>
> Hi all
>
> I am new to ASP Net and am using VS2008.
>
> On the click of a button in a form I want to:
> 1. Check if the second form is already on the browser, to ensure that
> another instance of the form does not display.
> 2. Set focus to the second form without the second form doing any
> postback.
>
> I have seen some codes in the internet, but the second form does a
> postback.
>
> function ShowOrderForm()
> {
> /* If the window doesn't exist or has been closed, open it */
> if((typeof newwindow == 'undefined') ||!(newwindow.open) ||
> newwindow.closed)
> {
> newwindow=window.open("Test05.aspx", "my_order");
> }
>
> if (window.focus) {newwindow.focus()}
> }
>
> Thank you in advance.
> MikeTI
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Determine if Excel is running in a browser window John Michl Microsoft Excel Programming 5 30th Oct 2006 07:01 PM
Determine Client Browser Window Size =?Utf-8?B?Q2hyaXM=?= Microsoft ASP .NET 1 15th Jul 2006 05:14 AM
Browser window getting closed when i open a new browser window =?Utf-8?B?U3Jpbmk=?= Windows XP Internet Explorer 2 17th Aug 2005 02:10 PM
Could not open key in registry, error = 5 Unable to determine build of browser master: 5 Helob Windows XP Networking 0 22nd Jul 2005 08:18 AM
A link set to open a new browser window kills original window. =?Utf-8?B?VGVycnkgUGxhbms=?= Windows XP Internet Explorer 2 15th Oct 2004 08:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.