[Javascript] Form focus

George Pitcher george.pitcher at ingenta.com
Mon May 10 08:06:16 CDT 2004


Hi,

I am new to Javascript and this list. I develop mainly in PHP with some
Lasso. I am currently building a web-database application and need
confirmation that the following is possible.

The user is viewing a populated form (db results are being shown inside form
textfields where editing is permitted. The user has two ways to update the
data.

For a single record, it is straightforward form sent, parsed and a query
built to update that record.

For multiple records the user is able to edit a single field and have that
change replicated through the recordset. The recordset is stored in a
temporary db table.

I reckon that what I need to do is to have 2 buttons: 'Update this record'
and 'Update this field' (the wording doesn't matter - its only for a handful
of users so I'll train them). By selecting a field and clicking the second
button, the field name and the value are posted. Does that seem reasonable.
Depending on the name of the button, my response script will process the
transaction accordingly.

Now, if that all looks OK, can someone give me some pointers as to how to go
about the javascript part.

Cheers

George in Oxford




More information about the Javascript mailing list