QF element ids generation and setting focus using javascript
| From: | Mike Carter | Date: | Mon, 02 Feb 2004 16:32:48 +0000 |
| Subject: | QF element ids generation and setting focus using javascript | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-10480@lists.php.net to get a copy of this message | ||
Hi,
Could somebody explain to me how the element ids are generated in QF.
They are in the form id="qf_f77d61".
I would like to write some javascript which is called at the end of the
renderer template. The javascript will place the focus in the first element
that can handle the focus() method.
Using something very simple like document.forms[0].elements[0].focus();
does't work because hidden elements are placed before 'normal' elements in a
quickform.
Has anybody already done this in javascript?
Regards,
--
Mike Carter
[Senior Developer]
Personal Medical Advisor Limited
T: 01925 758229 | F: 01925 758023 | W: www.personalmedicaladvisor.co.uk