Re: QF element ids generation and setting focus using javascript
| From: | Bertrand Mansion | Date: | Mon, 02 Feb 2004 17:15:00 +0000 |
| Subject: | Re: QF element ids generation and setting focus using javascript | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10481@lists.php.net to get a copy of this message | ||
<mike.carter@personalmedicaladvisor.co.uk> wrote :
> 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?
id is an attribute...
Bertrand Mansion
Mamasam