jQuery 1.2 Released!

This is a major release for the JavaScript library that I have grown to love. Before I list the new features, it is important to note what functionality has been removed from jQuery.

Here’s the deprecated functionality:

  • These Selectors
    • XPath Descendant Selector: $(”div//p”)
    • XPath Child Selector: $(”div/p”)
    • XPath Parent Selector: $(”p/../div”)
    • XPath Contains Predicate Selector: $(”div[p]“)
    • XPath Attribute Selector: $(”a[@href]“)
  • Calling clone() with an argument: $(”div”).clone(false);
  • These Traversal Functions use the new .slice() instead):
    • $(”div”).eq(0);
    • $(”div”).lt(2);
    • $(”div”).gt(2);
  • These Ajax Functions:
    • $(”#elem”).loadIfModified(”some.php”);
    • $.getIfModified(”some.php”);
    • $.ajaxTimeout(3000);
    • $(…).evalScripts();

Thankfully a number of those don’t effect me. I’ll have to comb through my code to get rid of the .gt, .lt, and .eq traversal functions as well as a few of the selectors…but other than that, I’m good to go. To find out more about workarounds for the above removed functionality, check the jQuery 1.2 release notes

Now…on to the good stuff.

New features!

  • Selectors

    •  :has(selector)
    •  :header
    •  :animated
    • XPath Selector Plugin
  • Attributes
    • .val() Overhaul
  • Traversing
    • .map()
    • .prevAll() / .nextAll()
    • .slice()
    • .hasClass()
    • .andSelf()
    • .contents()
  • Manipulation
    • .wrapInner() / .wrapAll()
    • .replaceWith() / .replaceAll()
    • Event Cloning
  • CSS
    • .offset()
    • .height() / .width() for document and window
  • Ajax
    • Partial .load()
    • Cross-Domain getScript
    • JSONP
    • .serialize() Overhaul
    • Disable Caching
  • Effects
    • .stop()
    • %/em Animations
    • Color Animations
    • Relative Animations
    • Queue Control
    •  :animated
    • step: Function
  • Events
    • Namespaced Events
    • .triggerHandler()
  • Internals
    • Documentation Move
    • Expando Management

I have to say…it is a pretty snazzy release and I’ll begin implementing the new version shortly. w00t.

Discuss This Article


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Preview:

 (174) - jquery loadIfModified (15) - jquery clone (13) - selector (11) - visual jquery 1.2 (10) - jquery evalscripts (10) - jquery hasClass (8) - jquery clone div (4) - jquery evalScripts() (2) - jquery gt (2) - jquery eq (2) - jquery traversing clone (2) - jquery clone() (2) - 1.2 evalscripts (2) - jquery 1.2 (2) - jquery lt (2) - jQuery 1.2 selector difference (2) - evalScripts ajax jquery (1) - jquery expando (1) - jquery eq(1) (1) - jquery 1.2.6 clone (1) - evalScripts() in jquery (1) - $.getIfModified (1) - loadIfModified in jquery (1) - .lt jquery (1) - jquery evalscripts ie (1) - jquery 1.2.6 lt (1) - jquery 1.2.2 documentation (1) - jquery :eq(0)> (1) - jquery selector div (1) - jquery eq() function (1) - jquery 1.2.6 evalScripts (1) - facebox eval (1) - jquery transversing a clone (1) - datetime selector jquery (1) - jquery selector expando attribute (1) - jquery .clone() (1) - jquery find clones (1) - jquery eq(0) (1) - jquery partial.load (1) - jquery .eq() (1) - jquery lt() (1) - jquery has selector (1) - :has(selector) jquery (1) - jquery ajax evalscripts (1) - jquery replaceAll (1) - loadIfModified jquery (1) - jquery clone ie (1) - jquery expando attribute selector (1) - jquery 1.2.6 xpath (1) - javascript, jquery clone (1) - jquery function gt (1) - jquery eq( (1) - .gt jquery (1) - jquery blog eq slice (1) - clone contents jquery (1) - jquery clone event (1) - evalScripts() jquery (1) - jquery (1) -