Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

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...&nbsp; you need to lookup how php handles=20
sessions....&nbsp; this really wont be a JS dependent =
problem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "Patricia Calatayud" =
&lt;</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>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: &lt;</FONT><A=20
href=3D"mailto:javascript@xxxxxxxxxx";><FONT face=3DArial=20
size=3D2>javascript@xxxxxxxxxx</FONT></A><FONT face=3DArial =
size=3D2>&gt;</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>&nbsp;<BR>In Normal php=20
document:<BR>&lt;head&gt;<BR>&lt;script&gt;&lt;!--<BR>var newWindow =3D=20
null;<BR>&nbsp;<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>&nbsp;function closeWindow() {<BR>if (newWindow !=3D null)&nbsp; {=20
<BR>&nbsp;&nbsp; newWindow.close();<BR>&nbsp; newWindow =3D=20
null;<BR>&nbsp;}<BR>&nbsp;}<BR>&nbsp;<BR>function=20
toggleWindow(contentURL,windowName,windowWidth,windowHeight)<BR>&nbsp;{<B=
R>&nbsp;=20
if (newWindow =3D=3D null) {<BR>&nbsp;&nbsp; widthHeight =3D 'HEIGHT=3D' =
+ windowHeight=20
+ ',WIDTH=3D' + windowWidth;<BR>&nbsp;&nbsp; newWindow =3D=20
window.open(contentURL,windowName,widthHeight);<BR>&nbsp;&nbsp;=20
newWindow.focus()<BR>&nbsp; }<BR>&nbsp; else {=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
newWindow.close();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newWindow =3D =
null;<BR>&nbsp;=20
}<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;// --&gt;<BR>&nbsp;&lt;/script&gt;=20
<BR>&nbsp;&lt;/head&gt;<BR>&nbsp;&lt;body onUnload=3D"closeWindow()"&gt; =

<BR><BR><BR>&lt;a class=3D"menu2"=20
<BR>href=3D"javascript:openWindow('newWindow.php','myNewWindow',150,50)"&=
gt;Obe<BR>rbegriffe=20
und Unterbegriffe&lt;/a&gt; | <BR>&lt;a=20
href=3D"javascript:closeWindow()"&gt;Close&lt;/a&gt; |<BR>&lt;a=20
<BR>href=3D"javascript:toggleWindow('newWindow.php','myNewWindow',150,50)=
"&gt;T<BR>oggle&lt;/a&gt;<BR><BR>In=20
new window document:<BR>&lt;head&gt;<BR>&lt;script&gt;<BR>funtion =
closeWindow()=20
{<BR>self.close();<BR>}<BR>&lt;/script&gt;<BR><BR>&lt;/head&gt;<BR><BR>&l=
t;body=20
onLoad=3D"window.moveTo(100,100)" onUnload=3D"opener.newWindow =3D=20
<BR>null;"&gt;<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--