Previous | Next | (P-PDF) Beginners
Topic: RE: Compare Java Script (Via Email)
Conf: (P-PDF) Beginners, Msg: 23036
From: kt
Date: 6/28/2001 12:40 PM
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0FFF0.E65C81B0
Content-Type: text/plain;
charset="iso-8859-1"
When you get a "has no properties" error, it means the object you named
doesn't exist. In this case, 'g' isn't getting set. It likely means field
"Q2" doesn't exist.
kt
>>From: "Christie"
>>
>>
>>Could someone shed some light on what I am doing wrong. I
>>am very new to Java Script.
>>
>>var f = this.getField("Q1");
>>var g = this.getField("Q2");
>>event.value = f.value - g.value;
>>function compare (f,g) {
>>if (g[0] > f[0]) return 0;
>>}
>>
>>
>>The error message I keep getting is:
>>
>>TypeError: g has no properties
>>
------_=_NextPart_001_01C0FFF0.E65C81B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
RE: Compare Java Script
When you get a "has no properties" error, =it means the object you named doesn't exist. In this case, 'g' isn't =getting set. It likely means field "Q2" doesn't =exist.
kt
>>From: "Christie" =<clandry@bos.bergmeyer.com>
>>
>>
>>Could someone shed some light on what =I am doing wrong. I
>>am very new to Java Script.
>>
>>var f = =this.getField("Q1");
>>var g = =this.getField("Q2");
>>event.value = f.value - g.value; =
>>function compare (f,g) {
>>if (g[0] > f[0]) return 0;
>>}
>>
>>
>>The error message I keep getting is: =
>>
>>TypeError: g has no properties
>>
------_=_NextPart_001_01C0FFF0.E65C81B0--