Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Javascript and PHP: Open a new window
- From: javascript@xxxxxxxxxx (Terry)
- Subject: [Javascript] Javascript and PHP: Open a new window
- Date: Mon, 25 Nov 2002 09:33:23 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0087_01C29465.B2D841C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am not a php developer but this has to do with session management... =
you need to lookup how php handles sessions.... this really wont be a =
JS dependent problem...
~ Terry
757 581-5981
AIM/Yahoo: lv2bounce
----- Original Message -----=20
From: "Patricia Calatayud" <patricia.calatayud@xxxxxxxxxxxxxxxxx>
To: <javascript@xxxxxxxxxx>
Sent: Monday, November 25, 2002 9:27 AM
Subject: [Javascript] Javascript and PHP: Open a new window
How can I open a new window from a php/html document and=20
get that the terms in the new window are generated dynamically by=20
php?
I have used the following, but it doesn=B4t work.
=20
In Normal php document:
<head>
<script><!--
var newWindow =3D null;
=20
function openWindow(contentURL,windowName,windowWidth,windowHeight) {
widthHeight =3D 'height=3D' + windowHeight + ',width=3D' + windowWidth;
newWindow =3D window.open(contentURL,windowName,widthHeight);
newWindow.focus()
}=20
function closeWindow() {
if (newWindow !=3D null) {=20
newWindow.close();
newWindow =3D null;
}
}
=20
function toggleWindow(contentURL,windowName,windowWidth,windowHeight)
{
if (newWindow =3D=3D null) {
widthHeight =3D 'HEIGHT=3D' + windowHeight + ',WIDTH=3D' + =
windowWidth;
newWindow =3D window.open(contentURL,windowName,widthHeight);
newWindow.focus()
}
else {=20
newWindow.close();
newWindow =3D null;
}
}
=20
// -->
</script>=20
</head>
<body onUnload=3D"closeWindow()">=20
<a class=3D"menu2"=20
href=3D"javascript:openWindow('newWindow.php','myNewWindow',150,50)">Obe
rbegriffe und Unterbegriffe</a> |=20
<a href=3D"javascript:closeWindow()">Close</a> |
<a=20
href=3D"javascript:toggleWindow('newWindow.php','myNewWindow',150,50)">T
oggle</a>
In new window document:
<head>
<script>
funtion closeWindow() {
self.close();
}
</script>
</head>
<body onLoad=3D"window.moveTo(100,100)" onUnload=3D"opener.newWindow =3D =
null;">
Is there a good book about PHP, Javascipt and DHTML?
Thanks
_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
https://lists.LaTech.edu/mailman/listinfo/javascript
------=_NextPart_000_0087_01C29465.B2D841C0
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.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I am not a php developer but this has =
to do with=20
session management... you need to lookup how php handles=20
sessions.... this really wont be a JS dependent =
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>~ Terry<BR>757 581-5981<BR>AIM/Yahoo:=20
lv2bounce</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Patricia Calatayud" =
<</FONT><A=20
href=3D"mailto:patricia.calatayud@xxxxxxxxxxxxxxxxx"><FONT face=3DArial=20
size=3D2>patricia.calatayud@xxxxxxxxxxxxxxxxx</FONT></A><FONT =
face=3DArial=20
size=3D2>></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: <</FONT><A=20
href=3D"mailto:javascript@xxxxxxxxxx"><FONT face=3DArial=20
size=3D2>javascript@xxxxxxxxxx</FONT></A><FONT face=3DArial =
size=3D2>></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Monday, November 25, 2002 9:27=20
AM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: [Javascript] Javascript and =
PHP: Open a=20
new window</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2>How can I open a new window from a php/html document and =
<BR>get that the=20
terms in the new window are generated dynamically by <BR>php?<BR><BR>I =
have used=20
the following, but it doesn=B4t work.<BR> <BR>In Normal php=20
document:<BR><head><BR><script><!--<BR>var newWindow =3D=20
null;<BR> <BR>function=20
openWindow(contentURL,windowName,windowWidth,windowHeight) =
{<BR>widthHeight =3D=20
'height=3D' + windowHeight + ',width=3D' + windowWidth;<BR>newWindow =3D =
window.open(contentURL,windowName,widthHeight);<BR>newWindow.focus()<BR>}=
=20
<BR> function closeWindow() {<BR>if (newWindow !=3D null) {=20
<BR> newWindow.close();<BR> newWindow =3D=20
null;<BR> }<BR> }<BR> <BR>function=20
toggleWindow(contentURL,windowName,windowWidth,windowHeight)<BR> {<B=
R> =20
if (newWindow =3D=3D null) {<BR> widthHeight =3D 'HEIGHT=3D' =
+ windowHeight=20
+ ',WIDTH=3D' + windowWidth;<BR> newWindow =3D=20
window.open(contentURL,windowName,widthHeight);<BR> =20
newWindow.focus()<BR> }<BR> else {=20
<BR> =20
newWindow.close();<BR> newWindow =3D =
null;<BR> =20
}<BR> }<BR> <BR> // --><BR> </script>=20
<BR> </head><BR> <body onUnload=3D"closeWindow()"> =
<BR><BR><BR><a class=3D"menu2"=20
<BR>href=3D"javascript:openWindow('newWindow.php','myNewWindow',150,50)"&=
gt;Obe<BR>rbegriffe=20
und Unterbegriffe</a> | <BR><a=20
href=3D"javascript:closeWindow()">Close</a> |<BR><a=20
<BR>href=3D"javascript:toggleWindow('newWindow.php','myNewWindow',150,50)=
">T<BR>oggle</a><BR><BR>In=20
new window document:<BR><head><BR><script><BR>funtion =
closeWindow()=20
{<BR>self.close();<BR>}<BR></script><BR><BR></head><BR><BR>&l=
t;body=20
onLoad=3D"window.moveTo(100,100)" onUnload=3D"opener.newWindow =3D=20
<BR>null;"><BR><BR><BR>Is there a good book about PHP, Javascipt and=20
DHTML?<BR>Thanks<BR><BR>_______________________________________________<B=
R>Javascript=20
mailing list<BR></FONT><A href=3D"mailto:Javascript@xxxxxxxxxx"><FONT =
face=3DArial=20
size=3D2>Javascript@xxxxxxxxxx</FONT></A><BR><A=20
href=3D"https://lists.LaTech.edu/mailman/listinfo/javascript"><FONT =
face=3DArial=20
size=3D2>https://lists.LaTech.edu/mailman/listinfo/javascript</FONT></A><=
BR></BODY></HTML>
------=_NextPart_000_0087_01C29465.B2D841C0--
- References:
- [Javascript] Javascript and PHP: Open a new window
- From: Patricia Calatayud
- [Javascript] Javascript and PHP: Open a new window
- Prev by Date: [Javascript] Javascript and PHP: Open a new window
- Next by Date: [Javascript] about java script
- Previous by thread: [Javascript] Javascript and PHP: Open a new window
- Next by thread: [Javascript] about java script
- Index(es):