Getting into jQuery

Swiss Army Knife Cadet 1

I have a friend that is wanting to get into learning and using jQuery so I thought that I would throw some information together to help them get started.

Documentation

Love jQuery’s documentation! I love being able to go to http://api.jquery.com/ and being able to quickly search for what I am looking for. This is great for when I know roughly what I want and just need a bit of information on how to do it. When I was starting out, the documentation main page was the place to be http://docs.jquery.com/

Including jQuery into projects

So you can download the jQuery code from the site and put it up on S3 or your own hosting service and include it into your projects that you are working on but why not let Google do it for you if it makes life easier? Google has a bunch of script libraries that they host for free that are used commonly. To include jQuery in your project stress free try this

Document Ready

One thing that can be frustrating when just starting out using jQuery is finding out the hard way of why you have to wait for the page to load before your functions can work. What??!! jQuery is a JavaScript library that extends native functionality of JavaScript and just plain makes JavaScript easier to work with. Problem is, none of your jQuery functions will work until the library is completely loaded and the structure of the html is in the browser. You can make sure your jQuery functions don’t try to do anything until the page is ready by putting your code in a document read wrapper that jQuery makes easy.

$(document).ready(function() {
  // Your jQuery code goes here
});

Shortcut

Because using jQuery is soo awesome and you are going to be using it soo much, the shortcut ‘$’ was used to reference jQuery. So the following two jQuery functions are the same.

jQuery("#ajax img").hide();
$("#ajax img").hide();

Help

Just remember when you get frustrated or you need help understanding something with jQuery do a Google search for what your having trouble with. If that doesn’t get you what you are looking for, ask a friend! There are many who have loved using jQuery and would love to help a friend out. Also, don’t forget the ever awesome http://stackoverflow.com/ which is a great place to find, ask, and answer programming related stuff! jQuery included.

Example

Here is a full and simple working example that I created just to show off a bit of the fun power of jQuery. Again, jQuery documentation rocks and has many examples but I thought this would be nice to pull together everything I had talked about here.

https://mikegrace.s3.amazonaws.com/geek-blog/jquery-example-1/jquery-example-1.html

photo by Quality & Style

Christmas ’09 Wish List

My family has been bugging me to share with them what exactly it is I am wanting for Christmas surprises so I thought i would appease. Besides wanting to be graduated, a have a job on the west coast to start paying off student loans here is what I would find exciting to have this Christmas. You can check out the complete list on Amazon.com at http://amzn.com/w/258FEXOTWJ1DO

Product ImageProduct ImageProduct ImageProduct ImageProduct ImageProduct Image Continue reading Christmas ’09 Wish List

My First Podcast!!

Technology For Learning

I have officially entered the world of Podcasting! The podcast is about technology and learning and incidentally enough, is hosted at http://technologyforlearning.info I am privileged to be able to co-produce the podcast with a good friend of mine, http://michaelfarmer.info. We both have a lot of fun being geeks and really digging into technology and what it means for us today and how it will impact us in the future. We are both amateurs and don’t have any formal voice training but we do love what we do. So, if you would like to join in on the fun and the conversation subscribe to the podcast and tune in each week as we review current technology and how it applies to learning.

8 Year Old Class All with iPod Touches

I am totally geeking out about this! Found the link through a fried on Twitter and I think it illustrates the power of giving young children the tools to each learn at their own pace. They also are a bit more motivated and excited about being able to use such a cool piece of technology.

Share Your Thoughts

?? Would you want your child to have an iPod touch as one of their learning tools in school? What can you see as some of the advantages or drawbacks with having this type of approach with our kids and their learning?