I am trying to access DbForm field values in a JavaScript function but I am
ending with an error. The error seems to be caused by the way fields are
named in DbForms. There are fields such as f_29_0@root_9, f_29_0@root_30 ...
It appears that these are not valid JavaScript identifiers. Thus a function
such as ( field name are my own):
function getAmount(DbForm)
{
1. var amount_field = getDbFormFieldName("amount");
2. alert(amount + " - amount ");
3. var amount = DbForm.amount_field.value().valueOf;
4. alert(amount + " - amount ");
} // end of the getAmount(Form)' function
does not work. Line 3 gives the following error:
'amount_field' is not an abject.
Line 2 gives f_29_0@root_40, which appears not to be a valid JavaScript
name.
I will appreciate any clues to help solve the problem?
Thanks in advance.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms