How To Implement A Very Simple Ajax Loader Using jQueryUI

Author: , September 23rd, 2011

GET Resources http://code.jquery.com/jquery-1.6.4.min.js http://jqueryui.com/resources/download/jquery-ui-1.10.1.custom.zip LOAD Resources

HTML Substitute your own loader graphic from http://www.ajaxload.info/

CSS

JS Show the spinner called “first”: jQuery(‘#Spinner-first’).fadeIn(); Hide the spinner called “first”: jQuery(‘#Spinner-first’).fadeOut(); Hide all spinners that start with an ID of “Spinner”: jQuery(‘[id^=Spinner]’).fadeOut(); That’s All Folks…

How To Redirect To A New Page After A Delay Using Javascript

Author: , August 16th, 2011

How To Delete Development File Versions (i.e. .css or .js)

Author: , June 30th, 2011

How To Find The Next Instance Of A Class Using jQuery

Author: , June 20th, 2011

How To Submit A Form On Select Change

Author: , May 3rd, 2011

How To Do Simple Wildcard Selection In jQuery

Author: , September 24th, 2010

Click here for the official jQuery Selectors documentation… jQuery(“input:radio[name^=foo]”) [code] <div id="test_1">Test One</div> <div id="test_2">Test Two</div> <div id="test_3">Test Three</div> [/code] Show all divs with an ID starting with “test”: [code]$("div[id^=test]").show();[/code] Hide any element that has an ID starting with “test”: [code]$("[id^=test]").hide();[/code] Another interesting approach I found was to use a filter. In the following example […]

How to check if a javascript variable is defined

Author: , October 21st, 2009

[code]if ( typeof(myVar) !== ‘undefined’) { // variable is defined } [/code] ~or~ [code]if (typeof variable === ‘undefined’ || variable === null) { // variable is undefined or null } [/code]