Thanks, Paul... I'll start working on that!

Rick

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul
Sent: Tuesday, March 13, 2007 11:25 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Ok... one last effort to make this work... help!

Two broad suggestions: First, get familiar with Firebug; in addition to just
js errors its messages will alert you to 404 errors (which you would have
caused by calling a file in the wrong folder) as well as 500 errors (which
are the result of CF errors) and save you a lot of time wondering why ajax
isn't working.  Second, poke through the tutorials on jquery.com, which
explain the basics and will turn you on to the possibilities.  

Now back to your question, assuming you're like me and develop in
iterations, I would simply start by copy/pasting the .blur() binding for
each field:

$("#Some-Field-ID").blur(function(){ //assign a blur event to the input
$.post("callpage_Validate_Mortgage_Inputs.cfm",
{some-variable-name:$("#Some-Field-ID ").val()}, function(data){

When I start by taking the easy way out like this, I typically begin to see
how it works and realize along the way how to make it more tidy.

You'll also need to handle the POST variables that will be different on the
CF side; assuming it existed in v 4.5, CF's structKeyExists(form,
"some-variable-name") function would do the trick.

And of course, the usual disclaimer: there are better ways to accomplish
this task (Jorn's plugin being one of them), but this will get you started.

-pm





_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to