http___www.jquerymagic.com_hr_2008_08__1.xml
2.1 3.1 3.2 4.1 5.1 6.1 7.1 8.1 9.1 10.1 10.2 10.3 11.1 12.1 13.1 13.2 13.3 13.4 14.1 14.2 15.1 16.1 17.1 17.2 17.3 17.4 18.1 18.2 19.1 21.1 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 23.1 24.1 25.1 25.2 25.3 26.1 27.1 28.1 29.1 30.1 31.1 32.1 32.2 33.1 33.2 33.3 34.1 35.1 35.2 36.1 36.2 37.1 39.1 40.1 40.2 40.3 41.1 41.2 42.1 42.2 42.3 42.4 42.5 42.6 42.7 43.1 44.1 45.1 46.1 46.2 47.1 47.2 49.1 50.1 50.2 51.1 52.1 52.2
Posted by: Mahbub In: Methods One of the best thing about jQuery is it’s chain ability for almost all it’s methods. If “chain ability” sounds hebrew, here’s a little explanation what it is. Let’s say you have a  Lorem Ipsum And you need to do the following - Change the height to 150px - Change the opacity to 0.8 - Add a class called “pClass” - And set the text inside the div like “We are the world” So, what would you do in normal circumstances? You write four lines of code. Like if you use jQuery in conventional way you’d probably write But if we use method chaininig we’d simply write $("#myDiv").css("height","150px").fadeTo(500,0.8).addClass("pClass").text("We are the world"); Looks messy ? I don’t think so. It’s readable unless you put quite a lot of methods to an object which is very unlikely. So that is chaining. Behind the screens , chaining is simply done by returning the object itselft after applying the method. It’s quite like how we use methods in Javascript Object like var myString="Lorem Ipsum Dolor"; pString= myString.toLowerCase().substring(0,5); And this is a gift when we have options to do things like that. Who wants to write more code when there’re ways to make it short ? At least I don’t. So almost all of the methods in jQuery has this chainability. All the methods that chain, returns the whole jQuery object itself so that more methods can be applied to it. You can see the above code running here. Posted by: Mahbub In: misc Well, there have been many articles on the WWW which would suffice “Why jQuery is the choice”. To me, it’s just precise, well structured, high learning curve and easy to use. When I was in the beginning of my Undergrad back in 1999, there was no library to deal with the cross browser issues (Netscape used to make life miserable for javascript programmers). So we had to write longer scripts for a specific purpose and handle the cross browser issues. Thomas Brattli at dhtmlcentral gave some pretty good scripts on menus and some libraries which we used to implement. But above all there was no such good library which could do magics, a library that you can extend easily the way you want, something meets the real programming standard. The journey to making javascript framework began much early. There are quite a number of libraries that started namely mochikit, prototype, mootools, dojo etc. But you should use jQuery for : Very Lightweight, weighs less than 20k when minimized and gzipped. High learning curve. Super chainability. Almost Every jQuery method returns the Jquery object which lets you put methods in tails one after another. like $(“#div_one”).css(“border”,”1px solid #000″).fadeTo(300,0.5).slideUp(300); Can be used with other libraries such as mootools using noconflict(). Easy to write plugins. Code becomes short, sweet and easy to understand. You don’t have to be a Javascript geek top write jQuery codes. IMPORTANT : Vast community support and contributions. Used by major open source applications like Drupal, WordPress. Microsoft chose jQuery to use it with their applications. (may be a good point to some MS fans ) Very easy to play with DOM. Lot of built in methods integrated. DOM selectors are very untuitive. Supports XPATH selectors. VERY VERY easy built-in AJAX utilities. (leave me an email if anyone needs to know how easy this is). enough for now. The list could go quite long. More to come soon. Posted by: Mahbub In: misc So after all jQuery changed their site’s look and feel. Earlier it was kind of geek interface and somewhat boring. The new look is much professional. At the day of the new look launch, there was a tag-line saying “Become a Javascript Rock Star” with a cartoon. But community users seemed to have disliked it heavily and after more and more negative comments Read the rest of this entry » I assume that we know what jQuery is. Well to brush it up, “jQuery is a javascript library that makes our life easier” . I like to define in that way. Ok, now in this post, I’m gonna show you how to get things started for jQuery. As you can read this blog, it’s obvious that you have an Internet connection and of course you’re using some browser. So let’s just try one piece of code before making the post lengthy. Before that let’s see what we need for that - jQuery Library (download from http://jqueryjs.googlecode.com/files/jquery-1.2.6.js) This is the current release when I’m writing the post. - A modern browser (IE 6.0+, FF 2+, Safari 2.0+, Opera 9.0+) with javascript enabled. - And a text editor (my Fav is notepad++) I suppose we all know how does a basic html page look like. We’d just run a simple piece of code adding jQuery library Now, just copy and paste the above code and save it calling “jquery-test.html”. Read the rest of this entry » Posted by: Mahbub In: misc jQuery Magic is intended to show some tutorials, snippets or tips and tricks that is not generally available with the official jQuery site even if in the plugins site. We call those magics because jQuery itself is full of magics, things you never thought possible with some tiny piece of codes. I’ll try to show the tips and trick for the beginner, intermediate and advanced levels. I will also welcome interested authors who want to contribute to this site with their tips and tricks.
1.1 2.1 3.1 3.2 3.3 3.4 3.5 4.1 4.2 4.3 4.4 4.5 5.1 6.1 7.1 7.2 7.3
30. kolovoz 2008 Posted by: Mahbub U: misc Dakle, nakon svega jQuery promijenio svoje web stranice izgled i dojam. Ranije je to vrsta monstrum sučelje i pomalo dosadno. Novi izgled je puno profesionalno. Na dan lansiranja novog izgleda, tu je tag-line govoreći: "Postanite Javascript Rock Star" sa crtić. No, zajednica korisnika kao da ga nije volio [...] Pretpostavljam da mi znamo što je jQuery. Pa da ga podsjete "je jQuery JavaScript biblioteka koja čini naš život lakšim". Sviđa mi se definirati na taj način. Ok, sada u ovaj post, ja ću vam pokazati kako da se stvari počeo za jQuery. Kao što možete pročitati ovaj blog, očito je da [...] 20. kolovoz 2008 Posted by: Mahbub U: misc jQuery Magic namijenjen pokazati neke tutoriale, isječke ili savjete i trikove koji nije općenito dostupni sa službenim jQuery stranice, čak i ako u pluginovi stranice. Pozivamo one magiji jer jQuery sama je puna magiji, stvari koje nikad nisu mislili da je moguće s nekim sitnim komad koda. Pokušat ću [...]