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:
afaik the ; handles that but indeed i would let the functions start at the beginning of a new line.i think you have to add "\n" after each row of java script code. .... $js .= "}\n";
[....]"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] 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>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php