[jQuery] SVN update! (important, plz read!)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Tahoma">I've made some improvements on the
SVN code.
Some of them you've been waiting on!
---------------------------------------------------------------------------
$.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');
Regards,
-- Gilles</font></font>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/