Dave Methvin schrieb:
>> Man you scared me... You meant new jQuery API "DOCS",
>> not new jQuery API right?
>
> What, you missed that thread? John has redone jQuery to avoid all the
> cryptic stuff. No more chaining for example. We're following the Yahoo UI
> model and namespacing the heck out of everything. So, this confusing piece
> of code:
>
> $("#links a").css(color: "blue");
>
> Becomes this wonderful thing:
>
> var jObject = new jQuery();
> jObject.element.getById("links", document);
> jObject.element.findByTagName("a");
> jObject.element.cascadingStyleSheet.setProperty("color",
> jQuery.color.getValueFromColorName("blue");
>
> As you can see, the new API is much more self documenting. ;-)
Hey Dave,
I think it should read
jObject.element.getElementById("links", document);
so that one doesn't have to remember another function name after
switching from W3C DOM to jQuery...
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/