Re: IE Problem : Dynamic Javascript in PHP constructor
- From: Alan Little <alan@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 May 2006 15:30:29 -0500
Carved in mystic runes upon the very living rock, the last words of
<pulkit.gaur@xxxxxxxxx> of comp.lang.php make plain:
I have a PHP class.
In the constructor method i use the following code :
constructor func .......
{
echo "<script type=\"text/javascript\">";
echo "alert('hi');
echo "</script>";
}
If that's a copy-and-paste, you're missing a " at the end of your second
echo statement. Other than that, it works fine for me.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
.
- References:
- IE Problem : Dynamic Javascript in PHP constructor
- From: pulkit . gaur
- IE Problem : Dynamic Javascript in PHP constructor
- Prev by Date: Re: From $20 to $300 ??
- Next by Date: Re: From $20 to $300 ??
- Previous by thread: Re: IE Problem : Dynamic Javascript in PHP constructor
- Next by thread: Populating arrays from MySQL query
- Index(es):