Re: Re: Call JS Function with PHP Header()?

From: Date: Thu, 03 Jun 2004 18:07:36 +0000
Subject: Re: Re: Call JS Function with PHP Header()?
Groups: php.general 
Request: Send a blank email to php-general+get-187569@lists.php.net to get a copy of this message
You should be able to use the comment tags, just put them inside the <script> tags: echo "<script language=\"javascript\" type=\"text/javascript\"> <!-- this.print() //--> </script>"; I don't believe you need a semi-colon after this.print within the javascript script. > [Original Message] > From: Nick Wilson <nick@stylesheet.org> > To: <php-general@lists.php.net> > Date: 06/03/2004 11:02:57 AM > Subject: Re: [PHP] Re: Call JS Function with PHP Header()? > > > * and then Nick Wilson declared.... > > <!-- <script type="text/javascript"> > > this.print(); > > </script> //--> > > > > Right in the middle of the body. It doesnt work LoL! - Seems to me that > > it should do...? > > Ahhhhh... XHTML Strict - Gotta remove the comment tags ;-) > > Thanks mate.. > > -- > Nick W > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#187569) next »