enavu webdevmania tutsvalley psdestination
visit the enavu network
21 Comments Article Title Overlay

jQuery 1.4 and what you will love about it

Quick review of the new jQuery release.

Well folks it’s out, the newest baddest, meanest, and leanest jquery ever is here and it rocks pretty hard. What you need to know is this.
The speed has increased exponentially for most of the functions.

Besides the awesome speed increases they have quite a few new functions and methods that [...]

DZoneDiggDesign FloatDeliciousBlinklistRedditFacebookGoogle BuzzTwitterStumbleUponTumblrShare

Quick review of the new jQuery release.

Well folks it’s out, the newest baddest, meanest, and leanest jquery ever is here and it rocks pretty hard. What you need to know is this.

The speed has increased exponentially for most of the functions.
# of Function Calls for Popular jQuery Methods

Besides the awesome speed increases they have quite a few new functions and methods that will help you along the way, here is a list of the ones i thought are important.

The .delay() is awesome, i’ve been using the setTimeout function for a while now, and that has gotten old. Now it’s as easy as adding

$("element").delay(200).hide();

That just delayed the hide by 200 milliseconds! HOW AWESOME! I love it, i’m going to use this today!

The .closes() is going to save me so many headaches (and maybe create a couple). It allows you to search for the nearest element to the current one. So far i have been using parents(“element”).find(“the_one”) and it works okay bit i have to use two methods, now its only one!

$(this).closes("the_one");

Now you have found the closes one to the one wink its confusing but i think you get the point.

Well in all honesty today i will only be using the ones from above, even though there are 100 more changes to it i wanna start using it, so bye bye for now. Enjoy!

DZoneDiggDesign FloatDeliciousBlinklistRedditFacebookGoogle BuzzTwitterStumbleUponTumblrShare

Related posts:

  1. Top 10 jQuery Snippets (including jquery 1.4)
  2. Cool navigation menu made with JQuery
  3. How to make a completely reusable jquery modal window
  4. Making a nice jQuery content scroller with ease.
  5. Favorite jQuery education websites

Did you absolutely LOVE this article... share it!

Comments

  • >Value swap
    You can replace focusin, focusout events bind ( “focus”, function), bind ( “blur”, function), respectively, if you use jQuery 1.3.2

  • For the value swap you could like to use the “defaultValue” JavaScript attribute.

  • Being a regular for the latest in web development i can assure this is one of the best snippets i have found ever … Great work continue man ..smile

  • Thanks for the snippets.

    One thing I would like to point out is that you should cache some of your selectors and values.

    For instance, in your equal height example, you should probably cache the value of height() as well as $(“div.col”).

    [removed][removed]

    If you’re more daring and like to make the JS work:
    [removed][removed]

    Lastly, on your example for doing zebra stripes, you can combine the selectors into one with
    [removed][removed]

  • Sorry about that last post, the code examples can be found at http://gist.github.com/282471

  • Hey Anoop D, thanks man smile out all the people who had to bullet proof my working snippets you just made my night smile i write this articles to help people start or continue with web development as i did once! So it’s REALLY nice to hear those nice words and to motivate me to write more articles that i hope to help the community!

  • For number 1 you should be pasting
    http://code.jquery.com/jquery-latest.min.js
    instead of
    http://code.jquery.com/jquery-latest.js
    This will result in a smaller download for your viewers.

  • Useful snippets!

    To open external links in a new window I use:

    $(“a[href^=http://]”).attr(“target”,“_blank”);

  • If you’re doing a list of jQuery snippets, and including 1.4, you should at least give examples on differences in 1.3.2 and 1.4.

    .closest(expr) is available in 1.3.2 too, for example.

    In jQuery 1.4, the .hover method can take only one function, which will be bound on both mouseenter and mouseleave.

    And .delay can also take the ‘slow’, ‘fast’ arguments as well, it will hopefully be added to the API docs in a not-too-far future.

  • Great list.
    I think jquery is easy to understand and always faster to develop.

  • THESE BLOW! How dare you even call this jQuery!

  • YOUR COMMENTS ARE BROKEN! THAT’S HOW GOOD YOU ARE BUDDY!

  • Thanks for helpful JQuery tips!

  • WTF is a jquerie

  • This is the greatest showcase of jQuery’s features that I have ever seen. Reading your snippets reminds me of reading Nabokov: my head and my heart ache to realise I will never match your lucid, potent, powerful writing. You have an extraordinary appreciation of jQuery’s usefulness, and the best methods of deploying it. This is certainly not just another lame attempt to cash in on the current buzz around jQuery. No, this is truly a post for the ages. I will be telling my grand children about this post, and I will certainly be subscribing to your blog. We are forever in your debt, and your shadow. Thank you so much.

  • Guys, if this blog isn’t up to your standards maybe you should stick to your webring…

  • Or we could tell him it sucks and encourage him to write real content?

  • Okay i want to quickly reply to you comments as it seems my blog is not up to your standards as trix said.

    @sneakyness the comments seem to work just fine, since ur using them

    @coldhead i had fun reading your comment, i appreciate your sarcasm. although it does pain me to hear that my blog was not helpful to you, i have otherwise heard quite a few people tell me they learned something new… my whole purpose for this blog has always been, and will be, to help people learn something new as i do every day. if that does not satisfy you i would gladly never want you to read my articles again as they are not up to your par.

    @sneakyness yes buddy it is easy to point fingers at others and tell them what they do sucks, I do not believe you are the owner of a blog that writes about anything… hence your opinion does not really matter to me. I do what i love, and i love what i do smile hence please keep your snotty comments to your self please

    @jboesch no idea what you are referring to

  • Just a quick tip: You can easily create equal columns by using faux columns. A List Apart has a nice article about it.

    http://www.alistapart.com/articles/fauxcolumns/

    I’ve done it a couple of times and still happy about that design choice.

    This way you are able to add content to the column without calling your function to resize the column.

    Wrapping divs around it will support multiple of those things on your page with or without tops and bottoms wink Good luck!

    Robbert

  • Various people in all countries get the loans in different creditors, just because this is comfortable and fast.

  • It will be nice to me. Isnt it? Who think else, give me a call.

Leave your own!

Sponsors

freedcamp free project management

Popular Articles

fzilla file hosting