saquery.com
a web developer' s kung fu…
Try this to determine if an object is type of jQuery. if (parameterValue instanceof jQuery) alert('true');
Categories: docs, free | Add a Comment
jQuery.tmp Level 1 - Static Html Load a Template from static Html Javascript String. Html Source <div class="s1"></div> <div class="s1"></div> Javascript Source $('.s1').tmp('<span>Template from static Html...</span>'); Load a Template from static Html Javascript String with context data.
Categories: english | Add a Comment
/*! * jQuery Sample Plugin * * http://saquery.com * */ (function(){ $.fn.setBorderStyle = function( settings ) { var _defaults = { 'border':'solid 1px black', 'color':'red' }, _config = $.extend(_defaults, settings), _ = $(this); return _.each(function(i,n) { $(this).css(_config); }); }; })(jQuery); $(function(){ $('div').setBorderStyle(); }) Test 1 : Invoke setBorderStyle with default settings. $('div').setBorderStyle(); Invoke "Test 1" [...]
Categories: | 3 Comments
AdministrationA JQuery WordPress Plugin: This WordPress Plugin provides a very easy way to load jQuery and jQuery UI with the basic CSS theme layout from Google CDN without using your traffic. It turns your blog into a full featured JQuery and JQuery UI WordPress blog. Javascript example Code: function invokeDemo(){ $(this).parents('div:first').animate({ width: ['toggle', 'swing'], height: ['toggle', [...]
Categories: docs, english | Add a Comment
The big players on the Internet offer a good possibility to include well known JavaScript libraries  in your own websites. There is no need for a own webspace. This is an example to load jQuery and jQuery UI with the basic theme from Google CDN. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" [...]