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
>

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to