Well, that does suck. 'The LiveDocs strike again...' So I guess the best
  thing to do is write your own async submit, then push the response to
the container in the callback.

This is actually insanely easy. Here's an example I had whipped up for 
my CF8 Ajax preso, which uses a combination of JQuery (to catch my 
button click event on an <input type="button"> I had placed in my form) 
and ColdFusion's Ajax.submitForm() javascript method:

        $(document).ready(function(){
                var frm = $('form#form1');
                $('#fakeButton',frm).click(function(){
                        ColdFusion.Ajax.submitForm('form1', 
'/forms/frmProcess.cfm', 
frmSuccess, errorHandler);
                        return false;
                });
        });
        
        function frmSuccess(text){
                $('form#form1').clearForm();
                frmPod_body.innerHTML = text;
        }

     function errorHandler(code, msg){
         alert("Error!!! " + code + ": " + msg);
     }

This took the return page content and posted it to a <cfpod> container.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com

Azadi Saryev wrote:
> that is only true for CFFORM tag, not FORM tag
> 
> read here:
> http://www.coldfusionjedi.com/index.cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers
> 
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com
> 
> 
> 
> Cutter (CFRelated) wrote:
>> Either way really. Here's the blurb out of the LiveDocs
>>
>> "The ColdFusion Ajax container tags, cfdiv, cflayoutarea, cfpod, and 
>> cfwindow, automatically submit any forms that they contain 
>> asynchronously. When the form is submitted, the result returned by the 
>> action page replaces the contents of the container, but has no effect on 
>> the rest of the page."
>>
>> Steve "Cutter" Blades
>> Adobe Certified Professional
>> Advanced Macromedia ColdFusion MX 7 Developer
>> _____________________________
>> http://blog.cutterscrossing.com
>>
>> Azadi Saryev wrote:
>>   
>>> i think you will find that using <form ...> instead of <cfform ...> (or 
>>> is it the other way around?) will do the trick.
>>> using one submits the form to cfdiv, the other replaces the main page
>>>
>>> ---
>>> Azadi Saryev
>>> Sabai-dee.com
>>> http://www.sabai-dee.com
>>>
>>>
>>>
>>>
>>>     
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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

Reply via email to