Commit graph

26 commits

Author SHA1 Message Date
John Resig b4e23b5af0 Reorganzing the jQuery source (first phase). 2007-09-08 12:42:32 +00:00
John Resig f96bf10415 Integration of Mike Alsup's excellent form serialization code. The benefits are as follows:
- New method: .serializeArray()
This returns an array of name/value pairs representing the contents of a form, or individual input elements.
- Enhancement: .serialize()
The results are correct now (as opposed to the mess from before), and allows you to serializes forms directly (rather than just the input elements).
- Enhancement: .val()
This now returns the correct value when dealing wih selects. Additionally, when dealing with multiple selects, it returns an array of values.

Based upon Mike's code:
http://malsup.com/jquery/form/comp/form.js

and test suite:
http://malsup.com/jquery/form/comp/test.html
2007-09-05 17:06:05 +00:00
John Resig 456f0fe598 Added namespaced events to bind, unbind, and trigger. This allows you to deal with event handlers of a specific "class" (great for plugins). 2007-09-03 14:53:09 +00:00
John Resig 5c19701a89 Made it so that you can pass in an event object to the trigger data args and it'll override the custom event object (this way you can pass in the event object of a mousemove to a drag event trigger, for example). 2007-08-30 16:34:34 +00:00
John Resig 042a46386a Added a new extra fn arg to trigger (so you don't have to simulate the trigger yourself). (Bug #1467) Added a new .triggerHandler() method that allows you to NOT trigger native calls AND returns the response from the handlers. (Bug #873 & #1417) 2007-08-30 05:51:11 +00:00
Brandon Aaron 24463a04ce trigger DOM0 event handlers when doing a trigger (#1363) 2007-07-21 01:04:59 +00:00
Brandon Aaron 6c5bfffd20 broken test in IE 2007-07-20 21:53:37 +00:00
John Resig 54035207fe Tweaked some of the tests, added in events and fx tests. 2007-07-09 00:15:44 +00:00
Brandon Aaron 2897b1bd23 unbind handlers with data + test (#935) 2007-04-24 22:35:04 +00:00
Brandon Aaron 11b64c1149 Don't pass handler function as data for events + test (#1140) 2007-04-24 21:48:52 +00:00
Brandon Aaron 03d2680259 Adding back modified test for #939 2007-04-22 05:13:33 +00:00
Brandon Aaron 2ad223aedd Use DOM 2 event handlers, do not trigger click on a tags and event.data no longer global 2007-04-22 03:16:53 +00:00
John Resig d7a8794eb5 Cleaned up a lot of the test suite - reorganized and renamed tests. Added a new triggerEvent() method to the test runner to help us better test actual event interactions. 2007-03-25 18:06:18 +00:00
Jörn Zaefferer eab0e57fb5 Added test for #815 2007-03-25 12:16:23 +00:00
Jörn Zaefferer 4b9bed9543 Added test for #935 2007-03-25 12:07:59 +00:00
Jörn Zaefferer 4903872c17 Added test for #939 2007-03-25 12:01:15 +00:00
Jörn Zaefferer a10afee0c3 Added a not-yet-failing testcase for #1054 2007-03-25 10:34:03 +00:00
Jörn Zaefferer 88abf0902a Added a not-yet-failing testcase for #1054 2007-03-25 10:30:59 +00:00
John Resig 6b729ff798 Cleaned up how event removing was handled. All expandos are now removed when they are no longer needed. Additionally, a bug where all events are unbound if an incorrect event handler is provided, was fixed. 2007-03-01 04:54:51 +00:00
Brandon Aaron 34cb5b5812 Fix for #964 2007-02-25 19:36:29 +00:00
Jörn Zaefferer 2c99c18652 Fixed toggle() test to exclude konquerer 2007-02-05 19:12:23 +00:00
Jörn Zaefferer 5cfaef9ff9 Exclude Opera from toggle test, too (#863) 2007-01-23 16:57:34 +00:00
Jörn Zaefferer 9f93c7b3b8 Removed another log statement; fixed add(Array) for IE (IE reports form.elements.nodeName == "FORM") 2007-01-23 14:46:19 +00:00
Jörn Zaefferer 926e80b902 Modified toggle() test to stop IE from browsing to another site, problem not solved 2007-01-23 11:10:02 +00:00
Jörn Zaefferer b8d46f7b6a Implemented, tested and documented #202 2006-12-28 11:37:07 +00:00
Jörn Zaefferer 7cc550727c Testsuite 2.0 2006-11-18 13:37:01 +00:00