Bug with the field -> BASIC ERROR

16 years 6 months ago #46705 by pelloq1
Bug with the field -> BASIC ERROR was created by pelloq1
Hello,

The fields created by CB like username, password, etc...

The field are generated like :

<input type="text" id="email" name="email" mosReq="1" mosLabel="e-mail :" size="40" value="" class="inputbox" />


And the custom fields are generated like :

<input class="inputbox" mosReq="0" mosLabel="Adresse" type="text" name="cb_adresse" value="" />


That is a funcdamental difference : the ID field is missing !:angry:

And if this field are missing, my custom javascript dont work (on firefox).

Please implement this on the next release and PLEASE say me witch core file I need to hack to set the ID field?

Thanks you,
Cédric, Switzerland

Post edited by: pelloq1, at: 2007/09/27 07:28

Please Log in to join the conversation.

16 years 6 months ago #46802 by pelloq1
Replied by pelloq1 on topic Re:Bug with the field -> BASIC ERROR
Found a hack for javascript :

replace

document.getElementById('fieldId').value;

by

document.getElementsByName('fieldName')[0].value;

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.155 seconds

Facebook Twitter LinkedIn