Commit graph

12 commits

Author SHA1 Message Date
Gilles van den Hoven 5ee555c9f0 see mailinglist 2006-05-31 16:29:43 +00:00
Gilles van den Hoven d7856eb24b $.fn.formValues;
Gets form values and creates a key=>value array of the found values.

What's new?
- Only does this for ENABLED elements.
- Keeps the same order of the form.
- Optionally adds the button which is clicked (marks that name with an 'x' in the list)

example: $('#frmLogin').formValues('oButton');



$.fn.update (PREVIOUSLY: $.update, so beware!!!!)
Calls sURL with sAction (method) and sends the aValues. Puts the results from that call in the jQuery object and calls fCallback if provided.

What's new?
- Renamed $.update to $.fn.update, since it is more obvious to call $('someJQueryObject').update(...) then $.update($('someJQueryObject'), ...). It's also more jQuery-ish
- Added the method you want to use, since i used post before, now you can select between either GET or POST.

example: $('someJQueryObject').update('sURL', 'sAction', 'aValues', 'fCallback');



$.fn.serialize
Calls the form's action with the correct method and the serialized values. Optionally adds the button which is clicked if you provide it. When there are results, the fCallback function is called.

What's new?
- The entire function

example: $('someForm').serialize('sButton', 'fCallback');
2006-05-31 11:14:21 +00:00
Gilles van den Hoven d8bad24d34 Rewrote $.xml a bit, cause the loading message got stuck (didn't hide) after fast ajax calls 2006-05-20 09:46:41 +00:00
John Resig 3386923dcc Fixed some bugs in the serialization code, it seems to work now. 2006-05-17 18:04:46 +00:00
Gilles van den Hoven f1c8b3ffc0 Fixxed the form serialize function as seen on the mailing list. 2006-05-17 16:01:19 +00:00
John Resig 4986837802 Not only does it pass the default JSLint settings, it also no longer leaks *any* global variables! 2006-05-17 02:42:03 +00:00
John Resig d71a85001b jQuery is now JSLint (jslint.com) compatible, save for the eval stuff. Can't there b
e legitamite uses for eval?
2006-05-16 22:15:05 +00:00
Gilles van den Hoven 329d1a3bb2 forgot to remove the old serialize function 2006-05-16 16:21:20 +00:00
Gilles van den Hoven 6e4f0ce05e Added my bugfixes and removed the triggerAjax and handleAjax functions since they are no longer needed afaik :) 2006-05-16 16:18:52 +00:00
John Resig b9e0b6ff37 Added support for global AJAX callbacks and Form Serialization. 2006-03-27 07:08:32 +00:00
John Resig f0034d64e3 Fixed more formatting/tab problems. 2006-03-23 21:13:20 +00:00
John Resig 8a4a1edf04 Inital Import. 2006-03-22 03:33:07 +00:00