Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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');
- Loading branch information
Gilles van den Hoven
committed
May 31, 2006
1 parent
497bfb7
commit d7856eb
Showing
1 changed file
with
79 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters