Klaus,

Thanks for catching that!  I totally missed that the 'get's weren't
working and that the 'get' was not augmenting the url.  I'll have to
improve my unit tests!

I'll be committing the form plugin to svn within the next day or two.

Thanks again.

Mike


> jQuery.fn.ajaxSubmit = function(target, post_cb, pre_cb, url, mth,
> semantic) {
>      var a = this.formToArray(semantic);
>      var m = this.attr('method') || 'GET';
>
>      // give pre-callback opportunity to abort the submit
>      if (pre_cb && pre_cb.constructor == Function && pre_cb(a, this) ===
> false) return;
>
>      url = url || this.attr('action') || '';
>
>      // if no target or 'post' callback was provided then default to a
> callback
>      // that evals the response
>      var t = target || post_cb || function(r) {
>              if (r.responseText) eval.call(window, r.responseText)
>          };
>
>      if (t && t.constructor == String)
>          if (m == 'GET')
>              jQuery(t).load(url + '?' + jQuery.param(a), post_cb);
>          else
>              jQuery(t).load(url, a, post_cb);
>      else
>          jQuery.ajax({ url: url, success: t, data: jQuery.param(a),
> type: mth || m});
>      return this;
> };

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

Reply via email to