Hi All,
My next little hurdle is how to pass a controls name to a function to access
the control inside the function:
Say I have the followind function:
function jblf_use(nId, cName) {
doc = this.opener.document;
doc.TASK_FORM_Form.Customer_ID.value = nId;
doc.TASK_FORM_Form.Customer_ID_SLE.value = cName;
}
To make it more generic, I would need to pass the name of the control, in
this case "Customer_ID" as a parameter and somehow make use of it, but this
is where I am stuck. The syntax. I have books, but can't seem to find
anything...
function jblf_use(nId, cName, cControl) { // cControl
=="Customer_ID"
doc = this.opener.document;
doc.TASK_FORM_Form.Customer_ID.value = nId;
doc.TASK_FORM_Form.Customer_ID_SLE.value = cName;
}
TIA,
Tom