Re: Javascript in php

From: Date: Thu, 21 Dec 2000 18:31:25 +0000
Subject: Re: Javascript in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31456@lists.php.net to get a copy of this message
actuall i had problems with echoing and printing JS code i ended up doing something like this $java = include(javascript); print " $java "; that workedd.. and the original code was fine.. dunno why i had to do this.. tho its alot easier then adding a bunch of echo " "; lines :} <-----CoreComm-Internet-Services--http://core.com/-----> (Jon Marshall CoreComm Services Chicago) (jonathon.marshall@core.com Systems Engineer II) (enthalpy@core.com Network Operations) <-----Enthalpy.org------------http://enthalpy.org/-----> (enthalpy@enthalpy.org The World of Nothing) <------------------------------------------------------> On Thu, 21 Dec 2000, Juergen Hall wrote: > > > > > can someone point me to documentation on javascript in php > > > folks, these are two completely different topics. > JS runs (if activated) on the client side (browser). > All you can do is "echo"ing JavaScript code : > > i.e. the code below will open an extra window. > > echo "<script language=\"JavaScript\">"; > echo "preview = > window.open('data/$table/preview.html','pre','width=550,height=450,s > crollbars=yes,location=no,directories=no,status=no,menubar=no,to > olbar=no,resizable=yes,left=50,top=50');"; > echo "</script>"; > > jyrgen >

« previous php.general (#31456) next »