jquery4u.com - Archives (décembre 2012)

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

Le: 21 12 2012 à 21:55 Auteur: Sam Deering

jQuery code snippet to add/set value of select box using a supplied url parameter. <script lang="text/javascript"> jQuery(document).ready(function() {     $.urlParam = function(name){         var results = new RegExp('[\\?&amp;]' + name + '=([^&amp;#]*)').exec(window.location.href);         return results[1] || 0;  ...

Le: 21 12 2012 à 21:42 Auteur: Sam Deering

Workaround jQuery code snippet to skip next interation in a loop. Just documenting this code snippet, no demo sorry. //output keys=values. eg [1]=[2], [3]=[4] etc, skips undefined keys var i = 0; $.each(array, function(key, val) {     if (webTrendsParams[i]) {        ...

Le: 21 12 2012 à 21:40 Auteur: Sam Deering

For anyone who is interested in blocking their site off – a concern is that an iframe can be used to include pages on your website into external sites. So to prevent people hotlinking your site’s webpages through iFrames simply include this script at the...

Le: 21 12 2012 à 21:40 Auteur: Sam Deering

This JavaScript error message was appearing when i included Google Friend Connect. It is very anoying so I decided to try and fix it. This was the full error message: Skipping duplicate osapi method definition chili.people.list on transport Googleapis; others may exist, but suppressing warnings...

Le: 21 12 2012 à 03:09 Auteur: jQuery Editor

Demo Homepage Plugin Details Name pagescroller Description Smooth Scrolling Made Simple. Add Animated Page Scrolling To Your Website. Keywords scrolling License Not specified, please see plugin documentation for licenses. Dependencies Not specified, please see plugin documentation for plugin dependencies. jQuery Versions 1.8.2 Author Dairien Boyd...

Le: 21 12 2012 à 03:06 Auteur: jQuery Editor

Demo Homepage Plugin Details Name Color Thief Description A script for grabbing the dominant color or color palette from an image. Uses Javascript and the canvas tag to make it happen. Keywords color License Not specified, please see plugin documentation for licenses. Dependencies Not specified,...

Le: 20 12 2012 à 21:45 Auteur: jQuery Editor

Video Tutorial Details Name 2D transform\’s translate() vs absolute positioning: Performance evaluation with Chrome DevTools Description CSS excitement: http://paulirish.com/2012/why-moving-elements-with-translate-is-better-than-posabs-topleft/ Tags css animations chrome Target Skill Level advanced Author Profile Paul Irish Published 2012-12-20 05:19:12

Le: 20 12 2012 à 02:46 Auteur: jQuery Editor

Demo Homepage Plugin Details Name jQuery Toggles – Styled Toggle Buttons Description Toggles is a lightweight jQuery plugin that creates easily-styleable toggle buttons. Keywords buttons License Not specified, please see plugin documentation for licenses. Dependencies Not specified, please see plugin documentation for plugin dependencies. jQuery...

Le: 20 12 2012 à 02:42 Auteur: jQuery Editor

Demo Homepage Plugin Details Name Infinity.js Smooth Scrolling Loading Description Infinity is a UITableView for the web: it speeds up scrolling through long lists and keeps your infinite feeds smooth and stable for your users. It is small, battle-tested, and highly performant. The code is...

Le: 20 12 2012 à 01:56 Auteur: jquery4u

Whats been popular in 2012? Here are the top 10 Traffic Generating jQuery4u Blog Posts 2012. Maybe I’m going slightly stats crazy!!!   1. 165,429 pageviews 14 JQUERY MODAL DIALOG BOXES http://www.jquery4u.com/windows/14-jquery-modal-dialog-boxes/ 2. 121.942 pageviews 50 JQUERY MOBILE DEVELOPMENT TIPS http://www.jquery4u.com/mobile/50-jquery-mobile-development/ 3. 120,897 pageviews AJAX/JQUERY.GETJSON...

Le: 19 12 2012 à 06:00 Auteur: Sam Deering

I am proud to announce a special offer to jQuery 4u blog followers a FREE jQuery Mobile Website build courtesy of jqmbuilder.com. To claim your free build simply click on the discount link below. You will then have 1 FREE build for a jQuery Mobile...

Le: 11 12 2012 à 21:55 Auteur: Sam Deering

As we all know testing in IE7 and IE8 can be very exiting! (even at the best of times). I thought I would share a quick way to test if your layouts are broken in IE7 and IE8 if you don’t use a tool or...

Le: 09 12 2012 à 22:00 Auteur: Sam Deering

Here are the top 5 demos/apps that I have seen (so far!) which use AngularJS framework. Demos/rankings current as of 16-11-2012. If you haven’t heard of Angular JS before it is a JavaScript Framework which is great for creating dynamic HTML templates which can utilize...

Le: 06 12 2012 à 22:00 Auteur: Sam Deering

A quick post to explain what a REST API is and how it can be used. I’m clearly making no assumptions about what you know and this is a very brief explanation of a can be very complex topic. A REST API defines a set...

Le: 05 12 2012 à 22:00 Auteur: Sam Deering

I just quickly code the initial version of a jQuery plugin to dynamically create a Paypal Buy It Now Button. This is only v1.0 just to get a quick win, I am adding more features soon. There is a demo and I’ve committed the project...

Le: 04 12 2012 à 22:00 Auteur: Sam Deering

Today’s post is a list of 5 tools which will improve your speed in creating new projects, proof of concepts and prototypes. Most of them you probably heard of before so this post is probably targeted towards the developer who is just started out –...

Le: 02 12 2012 à 22:00 Auteur: Sam Deering

Hi guys, im today’s post I am sharing with you some cool things I have found on the internet over the past few months – this helps me find stuff month by month THERE ARE SO MANY cool things coming out every day! Lots of...

Le: 02 12 2012 à 21:55 Auteur: Sam Deering

JavaScript Code snippet to generate a random RGB color. Could be useful for supplying color values to transitions to/from with a single line of code. See Demo var hue = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random()...

Le: 02 12 2012 à 21:52 Auteur: Sam Deering

This is a quick example use of the jQuery .map() function. Say for instance you wanted to get a comma-separated list of all checkbox IDs in a form, you can do this! Check out the quick demo at http://jsfiddle.net/CEcgL/. $(':checkbox').map(function() {   return this.id; }).get().join(',');...