Rob Gonda's Blog

AjaxCFC fastSerialize example

Due to popular request, I added an example showing how to easily submit an entire form through Ajax with the fastSerialize jQuery plugin.

All you require to do is to include this plugin:

$.AjaxCFC({require:'json,dDumper,blockUI,jquery.fastSerialize'});


and use it to send them form:
onSubmit="return send( $(this).fastSerialize() );"


the send() function looks like this:
    function send(frmData) {
        $.AjaxCFC({
          url: "echoTest.cfc",
          method: "echo",
          data: frmData,
          success: function(data) {
              sDumper(data);
          }
        });
    return false;
    };

simple huh?

Again, I updated the SVN repo and project download files. Enjoy.

AjaxCFC for jQuery JSON Update

Jeff Borisch point out that the cfjson v1.6b that I was using for the jQuery AjaxCFC was buggy. I updated it to v1.7 in the SVN and the project download file... I strongly suggest you get this update.

Cheers.

This blog is running version 5.9.003. Contact Blog Owner