RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Wilson, Les J SI-FSIA
Hi, try this total += parseFloat(x); Les -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: 14 February 2002 15:00 To: [EMAIL PROTECTED] Subject: Re: Indexed Tag and JavaScript Problem Now I have another problem. In JavaScirpt I have; var total=0.0; var x; for

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
Oops. That should be total =+ parseFloat( x); Mark -Original Message- From: Galbreath, Mark Sent: Thursday, February 14, 2002 10:49 AM To: 'Struts Users Mailing List' Subject: RE: Indexed Tag and JavaScript Problem total =+ total + parseInt( x); Cheers! Mark -- Try befo

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Galbreath, Mark
; >Hope this helps, >Adam S. Grohs >----- Original Message - >From: "SUPRIYA MISRA" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, February 14, 2002 9:50 AM >Subject: Indexed Tag and JavaScript Problem > > > > Since I am usin

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thanks.I used parseFloat() to do that and it works. >From: [EMAIL PROTECTED] (Duncan Harris) >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: Indexed Tag and JavaScript Problem >Date: Thu, 14 Feb 2002 15:12 + (GMT Standard Time) > >[EMAIL PROTECTED]

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
[mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 14, 2002 4:00 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Indexed Tag and JavaScript Problem > > > > > > Now I have another problem. > > In JavaScirpt I have; > > > > var total=0.0; > &g

RE: Indexed Tag and JavaScript Problem

2002-02-14 Thread Ronald Haring
ot; <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: Re: Indexed Tag and JavaScript Problem > >Date: Mon, 16 Jul 2001 09:02:32 -0400

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Duncan Harris
[EMAIL PROTECTED] (SUPRIYA MISRA) wrote: > Now I have another problem. > In JavaScirpt I have; > > var total=0.0; > var x; > > for loop > x=document.currentForm.elements["actHour["+loop+"].faHrsDay1"].value; > alert(x); > total=total+x; > alert(total); > end loop > > x gets the correct values

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
12 and so on. It is doing string concatenation instead of adding them. JavaScript Gurus please help. >From: "Adam Grohs" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTE

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Thank you so much Adams. It works. >From: "Adam Grohs" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >Subject: Re: Indexed Tag and JavaScript P

Re: Indexed Tag and JavaScript Problem

2002-02-14 Thread Adam Grohs
ere in your JavaScript on the page. The following should work: document.currentForm.elements["actHour[1].faHrsDay1"].value Hope this helps, Adam S. Grohs - Original Message - From: "SUPRIYA MISRA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thu

Indexed Tag and JavaScript Problem

2002-02-14 Thread SUPRIYA MISRA
Since I am using Indexed tag, my form gets the the following structure the update function is in JavaScript where I want to do some check. How to I access the form element? document.currentForm.actHour[1].faHrsDay1.value=1+1+3 does not work. error message from JavaScript is as follows. a