[Javascript] Variable in Object
Mike Dougherty
mdougherty at pbp.com
Fri Jan 6 07:42:17 CST 2006
would this work:
var loObj = window.opener.document.getElementById("diagnosis_0")
if (loObj) { loObj.value = icd9 }
(assuming that the element has an id value, and not just a name)
On Fri, 6 Jan 2006 11:28:12 -0200
diego nunes <dnunes at gmail.com> wrote:
> On 06/01/06, Fraser Baker <flbaker at sbcglobal.net> wrote:
>> var element = 'diagnosis_0';
>> window.opener.document.invoice.element.value = icd9;
>>
>> How do I insert a variable name into the object?
>
> var eName='diagnosis_0';
> window.opener.document.forms['invoice'].elements[eName].value=icd9;
>
> Amplexos.
>
> --
> diego nunes
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> __________________________________________________________
> This message was scanned by ATX
> 8:28:39 AM ET - 1/6/2006
More information about the Javascript
mailing list