Category: jQuery & Javascript

jQuery onready trick

When using jQuery were always using the $(function() or $(document).ready(function() to make sure that the page is loaded before we execute the jQuery. However there are times when this is not appropriate and some ugly things happen on the page. For instance, say we have something in the header of the document that shows an image but should start out hidden. We are using this to hide the image :
 $(document).ready(function() {
   $(‘#our_image’).hide();
});
Sometimes when the page loads it shows the image for a couple seconds before our code kicks in and makes the jQuery work. I’ve seen the same issue…Read More

Tags: jQuery & Javascript
Posted in jQuery & Javascript | Leave a comment

Validation

When it comes to validation the is no better choice in my opinion than jQuery validation plugins. Here is a nice one that should allow just about anything you like.
http://docs.jquery.com/Plugins/validation
Scroll to the bottom of the page to see some great demos.

Here is the validator I always use: a
http://jquery.bassistance.de/validate/demo/

Tags: jQuery & Javascript
Posted in jQuery & Javascript | Leave a comment

jQueryui.com

A great way to use jQuery and not have to learn a lot of code is to use jqueryui.com. This site has many great libraries to do all kinds of tasks without a lot of coding. It also has a great template builder that let’s you use their CSS templates. This is great because you can switch the template easily.
http://www.jqueryui.com

Tags: jQuery, jQuery & Javascript, CSS template, template, CSS
Posted in jQuery & Javascript | Tagged , , , | Leave a comment