jquery4u.com - Archives (mars 2013)

1 jQuery Fan Blog for your Daily News, Plugins, Tuts/Tips & Code Snippets.

Le: 28 03 2013 à 21:41 Auteur: Sam Deering

jQuery code snippet which outputs each word in a sentence at a specified interval. You can change the speed at which is outputs by the speed parameter in milliseconds. You can view the demo or load the code in jsfiddle below. DEMO jQuery $(document).ready(function ()...

Le: 28 03 2013 à 21:30 Auteur: Sam Deering

This is a code snippet for basic JavaScript to validate email address using a regular expression. See fvor help on how to use regular expressions with jQuery. You can also load the code in jsfiddle below. Demo var $email = $('form input[name="email'); //change form to...

Le: 26 03 2013 à 22:00 Auteur: Sam Deering

Today’s post is a collection of good jQuery plugins which handle scrolling of elements to keep them in view (sticky scroll) when you scroll the webpage down. Enjoy. 1. Sticky A jQuery plugin that gives you the ability to make any element on your page...

Le: 24 03 2013 à 22:00 Auteur: Sam Deering

Today’s post has some backbone.js useful links/resources to get you started with a new backbone project! Enjoy. 1. Epoxy.js An elegant and extensible data binding library for Backbone.js; it provides feature-rich extensions of Backbone’s Model and View components designed to hook view elements directly to...

Le: 21 03 2013 à 22:00 Auteur: Sam Deering

Today’s post is a collection of node.js and jQuery plugins and modules/framework extensions. It’s useful to see how jQuery can compliment frameworks used with or inspired by node.js. The sky is the limit! Enjoy. 1. jscex-jquery Async/Await support for jQuery 1.5+ SourceDemo 2. ClosureCompiler.js The...

Le: 13 03 2013 à 22:00 Auteur: Sam Deering

Just documenting some potential improvements to HTML5please.com – please :) HTML5 Features Support. HTML5 Slider It shows range but when you type “Slider” it doesn’t appear. Add a tag? <input type="range" name="rating" id="rating" min="0" max="25" step="5" value="0"> Mutiple Email Inputs Mutiple inputs support? <input type="email"...

Le: 13 03 2013 à 21:51 Auteur: Sam Deering

Do I use .size() or .length in Javascript? Let’s have a closer look… .size() simply calls .length (clearly shown this in the jQuery source code below) so we are saving a function call //http://code.jquery.com/jquery-latest.js // The number of elements contained in the matched element set...

Le: 13 03 2013 à 21:45 Auteur: Sam Deering

Nothing special just some JavaScript code snippet to open a popup window.     W = window,     D = document;     //set the window to widgets dimensions     var winH = 400, //allow for window padding and header      ...

Le: 13 03 2013 à 21:35 Auteur: Sam Deering

Documenting some useful jQuery, JavaScript, CSS3 popout scale effects code snippets. Hopefully will be useful for someone. jQuery IE Compatiable scale transition effect The problems of solving cross browsers transition effects is sometimes like following a long yellow brick road. CSS Only – works in...

Le: 11 03 2013 à 22:00 Auteur: Sam Deering

If you’re looking to design your next website or web app using the new Windows 8 Metro look these 10 Metro Bootstraps and Templates could help you get started! Pretty much the best ones I could find around on the internet at the moment. As...

Le: 09 03 2013 à 02:55 Auteur: Sam Deering

Hi jQuery fans and fellow developers worldwide! I am pleased to announce my jQuery4u Blog has reached 1,000,000 pageviews a month. Massive thanks to all the fans and followers of the blog and I hope it’s helping making the web a better place. Sam

Le: 04 03 2013 à 22:00 Auteur: Sam Deering

Many modern web apps these days use hash urls to add uniqueness (like a page tag, section, action etc…) to a page without refreshing it youn can identify it. This is following on from Getting Url Parameters Using jQuery to pass dynamic data to the...

Le: 04 03 2013 à 21:47 Auteur: Sam Deering

Just a quick couple of examples for one of jQuery’s underused functions. The $.filter() function is probably not used as much as more popular functions such as $.find() because it offers a slower speed according to jsperf.

Le: 04 03 2013 à 21:40 Auteur: Sam Deering

Quick point. It might be beneficial to mention that we are using vanilla for loops instead of jQuery.each for speed (up to 84% faster). Using a for loop with variable caching produces even faster results jsperf – each vs for. jQuery.each $.each(a, function() {  ...