Use javascriptFieldsArray="true" in dbform tag. Then an javascript array will be generated with wich you can access the fields with there real names.
Example should be somewhere in the docs... Regards, Henner > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von > Jan-Friedrich Mutter > Gesendet: Freitag, 27. Februar 2004 19:08 > An: [EMAIL PROTECTED] > Betreff: [dbforms] how to access a dbforms textField with Javascript? > > Hi, > > I'd like to access the value of a dbforms textField with Javascript. > Is that possible? > > example: > in the JSP: > <db:textField fieldName="TABLE_ID" /> > traslated to HTML: > <input type="text" name="[EMAIL PROTECTED]" value="107134" /> > > javascript method should be: > var myvalue = document.dbform.elements["[EMAIL PROTECTED]"].value; > > But how can I know the name "[EMAIL PROTECTED]" of the field? > > Thanks and bye, > Jan. > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with a free DVD > software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
