Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: passing javascript within two asp


Message #1 by "yyy" <hkyeong1@y...> on Fri, 28 Feb 2003 03:42:46
b.asp cannot use the remoteWnd object from a.asp because all the variables
from a.asp are thrown away when you switch pages.

However, if the popup is going to be called "sms", then in b.asp you can say

var remoteWnd=window.open("","sms");

and it will give you a reference to the named window "sms";

-Roy

-----Original Message-----
From: yyy [mailto:hkyeong1@y...]
Sent: Friday, February 28, 2003 3:43 AM
To: javascript
Subject: [javascript] passing javascript within two asp


hi all:

if i has one asp page call a.asp

has

javascript function like

function submit1() {
    url = 'http://203.106.203.231/_mem_bin/verifpwd.asp?orgid='+
document.loginform.orgid.value + '&username=' +
document.loginform.username.value + '&password='+
document.loginform.password.value;
    remoteWnd = window.open( url,"sms");
    window.focus();


}

if i want another page call b.asp

has


function link() {

window.remoteWnd.location.href
= "http://203.106.203.231/buy/manager/defaultyourpo.htm";
}

function link1() {

window.remoteWnd.location.href
= "http://203.106.203.231/buy/manager/defaultALLpo.htm";
}

**my question why b.asp cannot using remotewnd object from a.asp

how to solve the problem ?

thank for reply

regards,
yeong



  Return to Index