Thanks Dave, it's close but it still doesn't get directly to my needs. I've
tried accessing the elements array and assigning the calculated value to the
element[i].value but still a no-go. Thanks for the thought.
Israel Rose, CSQE
Functional Area Lead
Software Quality Assurance
System and Software Processes
Lockheed Martin Aeronautics Company
Dept 271M MZ 0160
Marietta, GA 30063
770-494-1167 (Office) 1-877-509-1529 (Pager)
"If you don't know where you're going, any road will get you there" --
African Proverb
> -----Original Message-----
> From: Dave Swift [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 5:15 PM
> To: CF-Server
> Subject: RE: Returning data from Javascript to CF Modules
>
> hi,
>
> this might be kinda what you're looking for.. i've assigned
> js vars to cf formfields as displayed in the following fragment..
>
> function modFormfield(fieldvalue,fieldname) {
> fieldname.value = 'images/'+fieldvalue+'.gif';
> }
>
> hope it helps,
> dave
>
>
>
>
> -----Original Message-----
> From: Rose, Israel [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:57 PM
> To: CF-Server
> Subject: RE: Returning data from Javascript to CF Modules
>
>
> Dave,
>
> I'm using a form with drop-down lists to select values and attempting to
> use
> a Jscript to manipulate those values and return a score (percentage of a
> maximum). My intent is to calculate the score and submit it along with
> the
> other values when the form is submitted. I have generated Jscript
> functions
> that allow me access the form elements, manipulate the data, generate and
> view the score in a window generated by Jscript but the score does not get
> assigned to the associated variable within CFML/HTML. The data is not
> being
> written to the database where I expect it to be go. Other data from the
> form is being written so I know it is not a write error. Does this
> clarify
> my request?
>
> Israel Rose
>
> > -----Original Message-----
> > From: Dave Watts [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 17, 2002 3:48 PM
> > To: CF-Server
> > Subject: RE: Returning data from Javascript to CF Modules
> >
> > > Does anyone have experience with the onSubmit feature of CF
> > > where data input to form elements can be processed using
> > > Javascripts and a value returned?
> > >
> > > I can see the data using the DispWin.document.write(message)
> > > feature in Javascript but the data doesn't seem to show up
> > > on the CFMS/HTML side.
> >
> > I'm not sure I understand what you're trying to do. When you use CFFORM,
> > it
> > generates JavaScript form validation tests as appropriate, and you can
> > hook
> > your own JavaScript into the existing CFFORM-generated validation tests.
> > What do you mean that you can see the data? What data are you referring
> > to?
> > Also, what do you mean that it doesn't show up on the CF/HTML side? That
> > only happens when the form is submitted; the data then is posted to the
> > server like with any other form.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > voice: (202) 797-5496
> > fax: (202) 797-5444
> >
>
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com