Hi Rick,

Your Ajax calls via .post are working fine. You're just not displaying 
the return message. Both .post calls are returning text but the only one 
thats being displayed is the one specified here:

$("#Interest").blur(function(){...}

You'll need to either have two instances of:

$("#Result").empty().append(data);

or concatenate the data and then show it all at once.

Finally, you really need to get yourself an HTTP sniffer. Its going to 
make your life much easier. Whether its Firebug, Service Capture, 
Fiddler or something else, until you get one in place you're flying blind.

Hope this helps.

Rey



Rick Faircloth wrote:
> Hi, Rey...
> 
> Link... sure... this is a demo link.
> 
> http://bodaford.whitestonemedia.com/html/trial_field_validation.cfm
> 
> I think the problem I'm having now is with the js code as I try to expand
> from validating just the Principal field to both the Principal and the
> Interest fields.
> 
> The problem is probably in this code:
> 
>       $(function() {  //jQuery makes this run when the page is loaded and
> ready
>       
>                       $("#Principal").blur(function(){ //assign a blur
> event to the input
>       
> $.post("callpage_Validate_Mortgage_Inputs.cfm",
> {principal:$("#Principal").val()}, function(data){
>                               
>                       $("#Interest").blur(function(){
>       
> $.post("callpage_Validate_Mortgage_Inputs.cfm",
> {interest:$("#Interest").val()}, function(data){
>                               
>                       // append what you get back to the element with ID =
> Result after clearing its contents
>                       $("#Result").empty().append(data);
>                                       
>                       }); // closes Interest function(data)
>                       }); // closes Interest blur function
>                               }); // closes post
>                       }); // closes blur
>       }); // closes document.ready
> 
> Thanks,
> 
> Rick
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Tuesday, March 13, 2007 11:46 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Ok... one last effort to make this work... help!
> 
> Rick, do you have a link that I can look at?
> 
> 
> 
> 
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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

Reply via email to