D
David Mark
David Mark's Javascript Tip of the Day
Volume 1 - Tip 3A
For God's sake, don't use jQuery under any circumstances.
http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2
Not fast, not concise, just creates a whole lot of confusion for no
good reason. Google combinations of: "jQuery", "attr", "prop",
"removeAttr", and now "removeProp" (!) and find lots of similar tales.
The "attr" variety is old news, the others were recently added to try
to fix the problems it created.
The client above just needed code like this:-
el.readOnly = b; // That's all
....instead they spent what appears to be hours slogging through
jQuery's muck.
The common recurring theme is that nobody associated with the project
seems to understand what these functions do or how to design
alternatives that make sense. Meanwhile, entire books and blogs about
jQuery are "right" one day and "wrong" the next as jQuery fiddles
endlessly with their core DOM code. Virtually every jQuery example
ever written makes at least one call to "attr".
http://www.cinsoft.net/
http://twitter.com/cinsoft
http://jsperf.com/browse/david-mark
Volume 1 - Tip 3A
For God's sake, don't use jQuery under any circumstances.
http://pengbos.com/blog/a-bug-in-jquery-latest-releasev1-6-2
Not fast, not concise, just creates a whole lot of confusion for no
good reason. Google combinations of: "jQuery", "attr", "prop",
"removeAttr", and now "removeProp" (!) and find lots of similar tales.
The "attr" variety is old news, the others were recently added to try
to fix the problems it created.
The client above just needed code like this:-
el.readOnly = b; // That's all
....instead they spent what appears to be hours slogging through
jQuery's muck.
The common recurring theme is that nobody associated with the project
seems to understand what these functions do or how to design
alternatives that make sense. Meanwhile, entire books and blogs about
jQuery are "right" one day and "wrong" the next as jQuery fiddles
endlessly with their core DOM code. Virtually every jQuery example
ever written makes at least one call to "attr".
http://www.cinsoft.net/
http://twitter.com/cinsoft
http://jsperf.com/browse/david-mark