Commit Graph

728 Commits

Author SHA1 Message Date
John Resig
7ebe209b32 Fixed not being able to set the disabled value of an element using .attr(). Ticket #8 2006-06-16 02:25:10 +00:00
John Resig
7eb6a25d5e Fixed issues with @* and @foo selectors. Ticket #2 2006-06-16 02:18:04 +00:00
John Resig
4c572bdf56 IE is now forced layout if it doesn't have it (such that opacity now works as expected). (Ticket #4). 2006-06-16 02:01:39 +00:00
John Resig
aabfccf371 Added Klaus' fix for accidental DOM node catches (Ticket #3). 2006-06-16 01:51:15 +00:00
John Resig
44590a5d84 You can now append and prepend into a table that doesn't have a tbody. 2006-06-16 00:45:02 +00:00
John Resig
cb3eada739 It's now possible to add <td>s and <th>s to a table, using only HTML. 2006-06-16 00:33:55 +00:00
John Resig
894fc4b280 Removed recent cssText addition, doesn't work as expected. 2006-06-16 00:22:00 +00:00
John Resig
598fcca346 Added some of the fixes discussed over at Dean's blog, concerning DOM Ready. 2006-06-16 00:19:47 +00:00
John Resig
9e27d8d1b4 Changed the window.location hack to be more specific (and documented). 2006-06-16 00:18:15 +00:00
John Resig
d9b1d3436a $.css() now accounts for borders in addition to padding when calculating the height/width of an element. 2006-06-16 00:09:51 +00:00
John Resig
a70ab6564b Added checks for the box model. 2006-06-16 00:05:56 +00:00
John Resig
34dd8afb25 Fake trigger events now get passed through $.event.fix() first, to give them an extra layer of authenticity. 2006-06-16 00:02:54 +00:00
Gilles van den Hoven
f9dbb9f73a changed ID selector code 2006-06-15 10:02:37 +00:00
John Resig
268c82a903 FX Queueing added. Effects no longer mess up causing weird results. 2006-06-15 04:48:52 +00:00
John Resig
807c75dadf Cleaned up the fx() function and fixed the height/width 'auto' bug. 2006-06-15 03:11:35 +00:00
John Resig
dea1925049 Fixed height/width issues that happend due to the box model, in $.css(). 2006-06-15 02:27:18 +00:00
John Resig
ba7ebaf70b Adding in the brand new, working, IE DOM Ready code. Plus I made it such that if you bind a ready() function after the DOM has loaded, it will fire the function instantly. 2006-06-14 20:05:06 +00:00
John Resig
25f5af1bcb Reverted back a $.tag change. 2006-06-14 17:31:09 +00:00
John Resig
55370e5710 Added in some revised DOM Ready code, I've removed all the kludgey stuff. I'd prefer to have predictable, slow, code that unpredictable fast code. 2006-06-13 04:12:06 +00:00
John Resig
582075e965 Added Mike Alsup's style/cssText fix and made a quick typeof change. 2006-06-13 04:09:56 +00:00
John Resig
83c7532161 Fixed appending rows to a table. 2006-06-13 02:20:15 +00:00
John Resig
5139bfbec8 Added UNIX build script. 2006-06-11 21:24:14 +00:00
John Resig
08bb08fede I've completely resolved the known issues with document ready. I use the known DOM ready functions that Mozilla and IE provides. For Opera and Safari I fall back to the original hack, but ignore it, and fall back to window.onload, if there are scripts embedded in the DOM. 2006-06-11 18:59:45 +00:00
John Resig
4b6bcb235f Fixed another bug with retreiving elements by ID. 2006-06-11 18:27:31 +00:00
John Resig
b5256caee6 Fixed an issue with #id expression parsing, an issue with formatting, and removed the try{} block from around event firings. 2006-06-11 18:12:46 +00:00
John Resig
a457262ef5 Found the bug that was killing slideUp/slideDown. 2006-06-11 01:16:36 +00:00
Michael Geary
b788be7cb9 Removing test file from previous commit 2006-06-10 19:05:14 +00:00
Michael Geary
79bc371da6 Test commit to see if it works from geary.jquery.com 2006-06-10 19:04:08 +00:00
Gilles van den Hoven
6596108635 changed $.execute back to eval() 2006-06-09 15:36:06 +00:00
Gilles van den Hoven
66f124a658 BAT file to build the jquery SVN into 1 file, for easy debugging. 2006-06-09 15:31:09 +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
Gilles van den Hoven
69ae9aeab0 name == id bug, second attempt 2006-06-06 12:51:44 +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
65b1081e9e little bug in $.fx.fadeTo 2006-06-03 12:48:19 +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
497bfb7909 -----
fx.js
-----
added: $.fn.fadeTo
Also changed ' fx.Opacity ' function so $.fn.fadeTo works. For this i changed one line, and one parameter in $.fx.Opactity:
"o.io = o.now = 1;"
became:
"o.io = o.now = (sv || o.cur());"

e.g. if there is a start value use it. Else, the current value is used. All calls to "$.fx.Opactiy" which where present in the code have now "1" as third parameter so the code doesn't break.

---------
jquery.js
---------
Changed line 401 to fix ' name="id" ' bug:
'#': "a.id == m[2]"
to:
'#': "a.getAttribute('id') == m[2]"
2006-05-27 10:18:18 +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
81fda970ff Made sure that $.event.handle() always has some form of an event object. 2006-05-17 18:48:23 +00:00
John Resig
c75701a015 Fixed bug with $.attr(), it was attempting to set attribute even if you're attempting to access a value. This was due to the !== null fix. 2006-05-17 18:46:51 +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
956529c7be Added some final global variable tweaks - no more namespace leaking! 2006-05-17 03:55:50 +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
2a6b0ee7c8 Fixed two quick bugs from the JSLint overhaul. 2006-05-16 22:32:15 +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