Hi, Andy.
 
Are you talking about one of those "calculate as you enter"
apps?  My client mentioned doing this, but I didn't know
if it would be useful, since the info has to be completely
entered before any beneficial result can be calculated.
 
But I'm game if you think that's a better approach.
 
I wouldn't mind using a simple app like this to learn
some more about jQuery and AJAX, however.  Would
it be difficult to do that way?
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Wednesday, February 28, 2007 4:36 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Need some guidance...
 
Rick...
 
To be honest, if you're just performing calculations on the values from the
form fields, you don't even need an AJAX call.
 
Just do the math in javascript. It'll be faster and seem more responsive to
the user.
 
  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Wednesday, February 28, 2007 3:31 PM
To: 'jQuery Discussion.'
Subject: [jQuery] Need some guidance...
Hi, all.
I've just started using jQuery recently and now
I'm trying to understand how to use it with AJAX
and I just don't know enough about how it works
to get started on a fairly simple app.  The sample app I've
been tinkering with sends a URL variable for a User_ID
using AJAX to a CF page, which runs a query and
returns the info to the calling page and appends
it to the body.  I'd like to send results back to the
form fields, as well as the calculated result.
I just don't have a clue how to set this up.
I have a mortgage calculator and I want the user
to be able to enter the principal, interest rate,
and duration in years, then run a calculation on it
and return the result.
I've set this up in a regular form that submits back
to the page it's on and it works fine.  It's coded in CF.
I'd like to be able to calculate and return the results using AJAX.
I've worked some very simple code using AJAX (actually
it was given to me), but I have no idea how to code for
the above scenario.
Would anyone care to give this CF'er some guidance
on creating this small jQuery/CF/AJAX app?
Thanks for any help!
Rick
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to