Fwd: Re: [PHP] Re: Javascript in PHP

From: Date: Tue, 24 Jun 2003 14:09:10 +0000
Subject: Fwd: Re: [PHP] Re: Javascript in PHP
Groups: php.general 
Request: Send a blank email to php-general+get-152616@lists.php.net to get a copy of this message
additionally, you named the fields WR PR and PFO while you refer to them as wr, pr and pfo.
Date: Tue, 24 Jun 2003 16:04:17 +0200 To: info@best-it.biz, php-general@lists.php.net From: Chris Hayes <chayes@antenna.nl> Subject: Re: [PHP] Re: Javascript in PHP I missed the 1st post but could this be related to form name being 'crimetype' and the javascript tryin to access the form 'ctype' ? At 15:55 24-6-03, you wrote:
i think you have to add "\n" after each row of java script code. .... $js .= "}\n";
afaik the ; handles that but indeed i would let the functions start at the beginning of a new line.
"Info@Best-It" <info@best-it.biz> schrieb im Newsbeitrag news:BB1DBFB5.91E2%info@best-it.biz... How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called by an checkbox? <script>function CheckBox1(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;if (box1.checked == true ) {box2.checked = false;box3.checked = false;}}
[....]
<form name="crimetype" method="post" action=""> <input type="checkbox" name="WR" value="1" onClick="return CheckBox1();"> <input type="checkbox" name="PFO" value="2" onClick="return CheckBox2();"> <input type="checkbox" name="PR" value="3" onClick="return CheckBox3();"></form></td>


« previous php.general (#152616) next »