I am very new to javascript, but I have managed to get MochiKit to work
with TG, and create some code that takes an entry from a drop down
populated from the database, uses XMLHttpRequest to get a record and
populates a number of fields with the contents. The code is so ugly
though that for fear of excommunication from this group I will spare
you the sight.

How would I go about writing a generic function or funnctions that
achieve the above. I am thinking that I need to pass the id of the
fields I want populated or somthing but I don't know how to do it.

Any help greatly appreciated.

Martin

Reply via email to