If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to focus a popup window from another asp page?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-30-03, 09:57
srivalli9 srivalli9 is offline
Registered User
 
Join Date: Oct 2003
Posts: 32
How to focus a popup window from another asp page?

Hi .
I have 3 asp pages.
A link in the first one creates a popup window.
A link in the popup window opens a page with 2 frames in it, top and bottom.
Now, I have a link in bottom frame of this page, which, when clicked , should give focus to the existing popup window.

When creating the popup window, I used a reference to it like...
newwin=window.open(...)
I tried to pass this newwin as QUERYSTRING to all other ASP pages.
And in the last page, i.e.,bottom frame page, I used the code like..
popup.focus() ---------- *
where popup is set to querysttring variable.... Request.QueryString("popupwindowreference")

The above procedure didnt work. it thows an error like...popup is undefined at line *

Can anyone figure out what the problem is?
Any help is grately appreciated!

Thanks you.
-Srivalli.
Reply With Quote
  #2 (permalink)  
Old 12-30-03, 16:56
jlot6 jlot6 is offline
Registered User
 
Join Date: Sep 2003
Location: Newark, Vermont
Posts: 20
I think you can only do something like this in Javascript?

Andrew Schools
Http://www.codehungry.com
Reply With Quote
  #3 (permalink)  
Old 12-30-03, 18:55
srivalli9 srivalli9 is offline
Registered User
 
Join Date: Oct 2003
Posts: 32
I did get my code working.
In the frame,bottom, I tried to popup another window with the same name as the previous popup window.
As a window with that name already exists, it activated the existing window, instead of creating a new one.

This is all I wanted!

Thanks a lot for the information you provided, though!

-Srivalli.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On