[QuickForm] Using JavaScript with QF generated Fields ?

From: Date: Wed, 08 Dec 2004 08:48:08 +0000
Subject: [QuickForm] Using JavaScript with QF generated Fields ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16103@lists.php.net to get a copy of this message
Hi, I want to write some JavaScripts that handle checkboxes inside my Site. (Something like if box x is checked, box a-h are checked as well) But the QF Fields have random ID's like you see here. Here is what QF generates. <input name="r_form_export" type="checkbox" value="1" id="qf_c1fcda" /> <input onclick="all()" name="r_all" type="checkbox" value="1" id="qf_c1fcna" />AllCheckboxes My Jscript in the Head Section of the Site: function all() { if(document.form.r_all.checked==true) { document.form.r_form_export.checked=true; } } Now I get the error when I check the AllCheckboxes box I get the following error by IE. "The object does not support that action" I can't figure out if that is because of an error in the Jscript or some Problem according to QF. Thank you for helping me. Mirco Blitz

« previous php.pear.general (#16103) next »