Re: Accessing QF_date elements from javascript (2nd and last try :)
| From: | Cesare D'Amico | Date: | Sat, 22 May 2004 08:54:14 +0000 |
| Subject: | Re: Accessing QF_date elements from javascript (2nd and last try :) | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12679@lists.php.net to get a copy of this message | ||
Alle 10:46, sabato 22 maggio 2004, Cesare D'Amico ha scritto:
> $this->_elements[] =& new HTML_QuickForm_select($sign, null,
> $options, array('id' => 'whatever') + $this->getAttributes());
>
> In this way an "id" eventually passed to the elements of the 'date'
> widget (I don't know if one can do that) would overwrite the id
> constructed automatically.
> I haven't still understood how to build that "whatever", though :)
> ('name_of_the_date_widget' . 'letter_in_date_format')
Perhaps something like:
'QF_' . 'name_of_the_date_widget' . 'letter_in_date_format'
would be better in avoiding "id" collisions with other elements in the
document.
--
Cesare D'Amico - boss (@t) cesaredamico (dot) com
http://cesaredamico.com ~ http://phpday.it ~ http://verona.linux.it/
Key on pgp.mit.edu, ID 92802693.
Questa è la mia vita, se ho bisogno te lo dico, sono io che guido, io
che vado fuori strada, sempre io che pago... non è mai successo che
pagassero per me... [Questa è la mia vita - Ligabue]