Commit Graph

27 Commits

Author SHA1 Message Date
John Resig
1edf3a2be9 Added in a couple AJAX fixes for status and content-type. 2006-07-04 00:42:57 +00:00
Michael Geary
05a4b784e8 Fix jQuery.httpData to allow forcing of text data 2006-07-02 02:11:37 +00:00
John Resig
2d9979c73f Made some tweaks to the different AJAX callbacks. 2006-06-22 22:25:03 +00:00
John Resig
6ae392a4e5 Updated global namespaces. 2006-06-22 20:14:41 +00:00
John Resig
c3c706d3f2 Massive update, bugs, filesize, new features - getting ready for 1.0. 2006-06-22 05:23:38 +00:00
John Resig
70cab836b0 The AJAX plugin is now fully documented, along with some bug fixes and new features. 2006-06-19 01:29:54 +00:00
John Resig
c43e1e379d Improved the robustness of the response codes based upon what's in Dojo. (Ticket #14) 2006-06-18 01:42:41 +00:00
John Resig
66bd98be22 Added onSuccess and onError callbacks for the $.xml() function. 2006-06-16 02:43:04 +00:00
Gilles van den Hoven
6596108635 changed $.execute back to eval() 2006-06-09 15:36:06 +00:00
Gilles van den Hoven
50cdc997b8 removed $.fn.changer by Marc's request and changed back the responseText in $.xml 2006-06-09 14:49:09 +00:00
Gilles van den Hoven
6656522705 Bugs fixxed:
- I've renamed $.eval to $.execute (since $.$$exec is allready there?)
- Commited sam's form function
- Removed $.fn.formValues()
- Removed $.fn.update()
- Removed $.fn.serialize()
2006-06-08 17:31:57 +00:00
John Resig
6e69be6687 Removed unnecessary instances of === or !==. 2006-06-05 16:19:03 +00:00
Gilles van den Hoven
b52b19ac4a $.eval bug ==> added ==> || "" 2006-06-03 13:49:25 +00:00
Gilles van den Hoven
330867ac2f Some errors in the formvalues() function 2006-06-02 14:27:25 +00:00
Gilles van den Hoven
4a36d00466 2006-06-01 16:40:37 +00:00
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