I'm using this code to validate each field on blur.
(Perhaps my referencing this as an Ajax function is inaccurate. At this
point, I have been thinking that anything that interacted with another
document and returned information to a calling page without refreshing
the page is Ajax... incorrect thinking?)


        $(document).ready(function(){
                $("input:text").debug().each(function(){
                        
                        var a = new Array();
                        
                        $(this).blur(function(){
                                
                        var Params={};
                        Params[this.name]=this.value;
                                        
                        console.log(Params);
                                
                        $.post("Calc_Test_Process_Field.cfm",Params);
                                        
                        });
                });
        });

I haven't used the form plug-in your reference, but I'll have a look
at it now... maybe that'll open up the functionality I need.

At first, I used Jorn's Validation plug-in, but soon found myself
wanting to use CF functions to validate data and not just what
Jorn's plug-in offered.  I had a good working solution (without CF involved)
with his plug-in, but wanted to use CF so I could validate against
queries, etc, too.

Paul (Vernon?) had something working like this that he showed me,
but he was using Json functionality to return the result to the
calling page, and have been thinking that CF 4.5 couldn't do Json.
Am I right?

Rick


-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 23, 2007 2:26 PM
To: CF-Talk
Subject: RE: Scorpio - What to do until then?

Rick,

>I've been able to accomplish that when I'm validating the
>individual fields, but once all the fields are validated,
>I haven't figured out how to send the entire form at once.
>
>Perhaps another function (I tried that, but it's probably
>incorrect) that get's called when the "Calculate" button
>is clicked.  That's what I'd like the user to do once the
>fields have all cleared validation.
>
>I was trying to use taconite to return the result that is
>processed, but I can't get it back to the form page
>for display.
>
>The browser is just displaying the raw taconite code,
>saying there is no style information associated with
>the info.  I think it's just not getting passed via Ajax
>to the form page.  At that point Firebug is "disabled"
>and it says the page cannot be displayed.

How are you currently "validating" the form? 

How are you currently submitting the form via AJAX? Are you using the Form
Plug-in to submit via AJAX? If not, please take a look at that plug-in:

http://www.malsup.com/jquery/form/

-Dan




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273605
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to