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.

TrackBacks
as
dfasdf
Tracked by asdf | Tracked on 5/11/09 8:55 AM

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?8E0A5A06-3048-7431-E4D6E4E6D36E5AA5

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
It doesn't appear that the fastSerialize function works on multiple checkboxes. Any ideas?
# Posted By James Brown | 5/11/09 3:39 PM
This blog is running version 5.9.003. Contact Blog Owner