Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] window problem
- From: javascript@xxxxxxxxxx (sushil)
- Subject: [Javascript] window problem
- Date: Wed, 27 Jun 2001 15:56:13 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_003C_01C0FF21.B0FF0300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
function replace() {
opener.location.replace("page1.html", opener.name);
opener.document.forms[0].field.value =3D document.forms[0].rep.value;
}
just comment the first line and see, it will work. actually when u are =
replacing the window1, then it is not the opener window. so =
opener.docum... will not work. change your logic.
sushil.
------=_NextPart_000_003C_01C0FF21.B0FF0300
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial> function replace()=20
{<BR> opener.location.replace("page1.html",=20
opener.name);<BR> opener.document.forms[0].field.value =3D=20
document.forms[0].rep.value;<BR> }<BR><FONT size=3D2>just comment =
the first=20
line and see, it will work. actually when u are replacing the window1, =
then it=20
is not the opener window. so opener.docum... will not work. change =
your=20
logic.</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT =
size=3D2>sushil.</FONT></DIV></FONT></BODY></HTML>
------=_NextPart_000_003C_01C0FF21.B0FF0300--
- Prev by Date: [Javascript] Remote Scripting
- Next by Date: [Javascript] still on changing text
- Previous by thread: [Javascript] Help with unsubscribe
- Next by thread: [Javascript] 1+1+1=111?
- Index(es):