Javascript
-
jQuery 1.7.2 Beta 1 Released1 February 2012, 1:33 am
Hey there Internets, it’s the jQuery Core team! We haven’t talked in a while, but over the holidays we were busy fixing the bugs you reported. The result of that hard work is jQuery 1.7.2 Beta 1. We decided to get a beta out by Groundhog Day so you wouldn’t be in the shadow of [...]...
-
Plugins Site Update: The Old Is New Again13 December 2011, 4:44 pm
We’ve gotten a lot of feedback since last week’s announcement about the plugins site’s unfortunate tumble into oblivion, and I’d like to address a few of the most important concerns that have surfaced since. “Could you make the old backup available for posterity?” Yes. We can — and have. Over the weekend, we restored the [...]...
-
What Is Happening To The jQuery Plugins Site?8 December 2011, 9:20 pm
For about a week, instead of hosting several hundred jQuery plugins and several thousand advertisements for laptop batteries, our plugins repository has been serving up a pretty pathetic message about spam and an allusion to some “new submission process.” This happened very suddenly, and we’re sorry to everyone who’s been inconvenienced. Please allow me a few minutes to explain [...]...
-
jQuery Conference 2012: UK – Training Workshops Announced29 November 2011, 3:56 pm
We are very happy to announce two training workshops for this years United Kingdom conference. The trainings will be given by Doug Neiner, Ralph Whitbeck and Mike Hostetler of appendTo. The general admission tickets for the conference are now sold out but you can buy conference/training bundles and still attend the conference. appendTo will be [...]...
-
Call for jQuery 1.8 Ideas22 November 2011, 6:28 pm
We’re ready for our next round of community input, this time for version 1.8! This is your chance to suggest things we can fix, add, change, or remove in jQuery to make it better. You can add a suggestion using this form; whenever possible provide links to a bug report, a page with a detailed [...]...
-
jQuery 1.7.1 Released22 November 2011, 2:39 am
Here in the United States, we’re celebrating Thanksgiving this week. For those of you living elsewhere in the world, it’s a time when we install and test new versions of Javascript libraries while feasting on Mom’s homemade goodies. Kind of like a code sprint, but with better food. We invite everyone worldwide to join us [...]...
-
Getting Board of jQuery18 November 2011, 10:11 pm
TL;DR The body responsible for overseeing jQuery’s finances and administration, which was until today known as the jQuery Team, is now called the jQuery Board. The jQuery Team is for anyone who invests a significant amount of time contributing to jQuery and its related projects. As jQuery has grown from a cool idea in 2005 [...]...
-
jQuery 1.7.1 RC1 Released18 November 2011, 12:35 am
Just to let you know we’re not asleep at the switch around jQuery Central, we’ve got a new preview release of jQuery. It fixes the problems reported by the community since the original 1.7 release. Please test the code in your applications, making sure that there are no major problems. If you tried jQuery 1.7 [...]...
-
Upcoming jQuery Events11 November 2011, 6:08 pm
jQuery Summit 2011 It’s that time of the year again (no, not Christmas!, something almost better!) – the annual (online) jQuery Summit. This year Environment For Humans (E4H) have a terrific line-up including sessions on jQuery plugin authoring best practices, creating interactive experiences with HTML5 and Popcorn.js and best practices for testing your jQuery code [...]...
-
Building a Slimmer jQuery8 November 2011, 8:42 pm
jQuery is more than five years old now! Over that time it has evolved along with the browsers, web sites, devices, developers, and users that it serves. It has also, um, grown quite a bit over that time. jQuery has added a lot of useful features, but it’s also accumulated cruft that we’d prefer not [...]...
-
Add jQuery to your Greasemonkey script5 August 2011, 1:07 pm
Greasemonkey is a Firefox add-on that lets you run JavaScript on web pages you specify. Using Greasemonkey you can improve and change the way websites look and behave (see examples of what is possible here). To learn more about it see it's official site, to learn how to include and write your own custom scripts (aka "user scripts") visit coder's manual. Usually Greasemonkey scripts work with the...
-
HTML: The difference between attribute and property13 June 2011, 11:37 am
In this short post I will explain the difference between attributes and properties in HTML. The .prop() function introduced in jQuery 1.6 raised a lot of questions about the difference and I hope this post will help you to understand it. What is an attribute? Attributes carry additional information about an HTML element and come in name=”value” pairs. Example: <div class=”my-class”></div>. Here...
-
Check if a language file is loaded for jQuery Globalization plugin15 October 2010, 8:23 pm
Recently, I wrote my first jQuery Globalization plugin introductory post. I mentioned that I will write a tutorial for Globalization plugin and I am. While writing the tutorial I thought I’ll write one of my short Friday jQuery tips. In this post you will learn how to check if a specific jQuery Globalization plugin language file is loaded or not. Globalization plugin saves localization data and ...
-
JavaScript to detect iPad visitors6 October 2010, 8:15 pm
This post gives you a short JavaScript function to detect your iPad users. Without any further ado, a javascript code to detect iPad users: function isiPad(){
return (navigator.platform.indexOf("iPad") != -1);
}
You can also detect browser version and some other stuff by parsing user agent string. Here is an iPad Safari’s user agent string for your reference:
Mozilla/5.0 (iPad; U; CPU OS 3...
-
jQuery Globalization plugin — jquery.glob.js5 October 2010, 10:17 pm
This is the first post of a series that are dedicated to jQuery’s new Microsoft contributed Globalization plugin or shortly jquery.glob.js. In this first post I will try to cover the very basics like library licensing, “the good & the bad” and some thoughts on how it could be improved (IMO). I will be post some jQuery globalization plugin tutorials in coming days, so bare with me. Before we ...
-
Russian CDN for jQuery25 September 2010, 5:19 pm
I recently discovered that the biggest Russian search engine Yandex (yeah, it’s bigger than Google in Russia) is using jQuery on its home page. It also hosts all previous jQuery versions on it’s fast gzip enabled servers just like Google and MIcrosoft do. Because most of the Russian internet users have visited Yandex already, they already have it in their browser cache. I also did route tracing ...
-
iPhone / iPod detection using jQuery & JavaScript24 September 2010, 5:36 pm
In this post you will learn how to detect iPhone/iPod using javascript/jQuery, redirect your iPhone users to mobile version of your site using javascript and alternative and better way to redirect your visitors using server-side PHP code snippet. The latest buzz around jQuery is upcoming jQuery mobile – support for mobile devices. Current jQuery core work fine on iPhone and iPod touch browsers ...
-
jQuery mobile source code22 September 2010, 5:30 pm
If you want to download jQuery Mobile source code and look into it just like everybody else, we are all out of luck :( As I mentioned in my previous post jQuery mobile facts, the source code will be available in October this year. The jQuery Mobile source will not be in a separate jquery.mobile.js file. It will be right in the jQuery core. This means that jQuery team is fixing and improving ...
-
jQuery & Cookies (get/set/delete & a plugin)21 September 2010, 10:04 pm
In this post I would like to share javascript functions that will help you easily get, set, delete and basically manage your cookies. Also, link to jQuery Cookie plugin, it’s improved version with more functions and of course easy to read and short examples on how to use these functions. I will try to keep this post short and will not explain what cookies are and how to eat them. There are ...
-
jQuery Mobile29 August 2010, 4:38 pm
jQuery Mobile is an attempt to create a javascript framework that would work on all major mobile browsers. In this post I will try to lay down all the facts that I could find about jQuery Mobile, so that you are up to date. jQuery team has mentioned that they were planning and started to work on jQuery for Mobile devices when they announced jQuery 1.4. John Resig said that they already had ...
-
jQuery UI Close Dialog on Overlay Click9 July 2011, 7:16 pm
I have seen a lot of overly complex solutions for this simple problem and none of them have been valid solutions, here is a snippet that accomplishes it in an unambiguous manner. $('#el').dialog({ open: function(e){ var self = this; $('.ui-widget-overlay').bind('click', function(){ $(self).dialog('close'); }); }, close: function(){ $('.ui-widget-overlay').unbind('click'); } });...
-
When Percents Just Don’t Cut It2 March 2011, 4:46 pm
The Code $.fn.fill = function(options){ var settings, container, el, calculateHeight, calculateWidth; settings = { fill: window, margins: { x: 0, y: 0 } }; if(options){ $.extend(settings, options); } container = $(settings.fill); el = $(this); calculateWidth = function(){ return (container.width() - settings.margins.x); }; calculateHeight = function(){ return (container.height() - settings.margins.y); } el.css({ width: calculateWidth(), height: calculateHeight() [...]...
-
Remove jQuery From Your WordPress Theme27 November 2010, 8:44 pm
WordPress will generally inject jQuery into your front-end theme which in my opinion is a huge fail. Often times plugins will do it, fortunately there is a simple fix......
-
Grid Bookmarklets23 August 2010, 10:29 pm
This morning I was seeking after a sweet bookmarklet to overlay a grid to the current website. Andy Budd had a pretty cool one but there was no way to turn it off, also the image was a little busy. So with the help of Jacob O’Neal for the images I created a modified version [...]...
-
Confirmootion – MooTools Class For HTML5 – Rails 3 Inspired Confirmations25 February 2010, 10:56 pm
With Rails 3 Comes The End Of Obtrusive JavaScript (please!) Ruby on Rails 3 makes huge use of custom attributes using the data-* from the HTML 5 spec. This is a miniature class that will grab all anchor tags with “data-confirm”, pull that attributes value and stop the default event from firing till after they [...]...
-
Developer Tools In Safari7 February 2010, 12:15 am
For a long time I was using Firefox just for Firebug. You know, sort of like when two people stay married for the kid. I was sick and tired of how Firefox rendering looked, hard to explain just not quite as smooth. When Chrome for Mac was released in the beta phases I was stoked… [...]...
-
WTFramework – Detect Which Framework A Site Is Using, The Easy Way27 December 2009, 8:20 pm
WTFramework Summary WTFramework is a dead simple, and well designed way to detect which framework a site is using as well as version. Being primarily a JavaScript developer I was always looking through the source to find which framework a certain site was using. Or to see if the developer had done something particularly cool [...]...
-
Making Every Specified Link Send Via Ajax Using MooTools17 December 2009, 5:44 am
This is a relatively simple concept and is nothing to elaborate but I wanted to share a small piece of code that will take every link with the class of “ajax” and access it using AJAX instead of actually going to that page. This using the same Request instance which will keep it optimized and [...]...
-
MooTools – It’s Worth It!7 November 2009, 11:25 pm
In my attempt to use MooTools on new projects with other developers, share MooTools with other developers, or just releasing a MooTools class; I’ve come across the same complaints about this incredible framework. MooTools Complaints Poor Documentation While its true MooTools is poorly documented compared to other frameworks it is still worth learning and with [...]...
-
MooTools Grapher Class4 November 2009, 8:50 pm
Let it be known. This class doesn’t have a lot of options but it is fairly dynamic. If people actually use this class I will make it more customizable to the options and not just the class itself. While this is nothing special and there are plenty of great MooTools graphing systems out there I [...]...
-
Using jQuery’s .pushStack() for reusable DOM traversing methods20 December 2011, 6:51 pm
The .pushStack() method has been in jQuery since before version 1.0, but it hasn't received a whole lot of attention outside of core developers and plugin authors. While its usefulness may not be immediately apparent, it can come in really handy in some situations, so I'd like to take a quick look at what it [...]...
-
Using jQuery’s Data APIs2 September 2011, 4:52 pm
In the beginning (well, beginning with jQuery 1.2.3 in early 2008) there was the jQuery.data() API. It offers a way to associate JavaScript data — strings, numbers, or any object — with a DOM element. As long as you manipulate the DOM element with jQuery, the library ensures that when the DOM element goes away, [...]...
-
jQuery.map() in 1.63 May 2011, 8:39 pm
Among all of the great fixes and additions to jQuery 1.6, I'm happy to say that jQuery.map() now supports objects! The previous map only supported arrays. With other libraries already offering object support for map, it was a nice addition. Let's say you want to collect an array of object keys from a JSON object. [...]...
-
Merging jQuery Deferreds and .animate()17 February 2011, 12:46 pm
Editor's Note: This article originally appeared on danheberden.com. jQuery’s .animate() method, and the shorthand methods that use it, are fantastic tools to create animations. Creating animations that link together to achieve a particular effect, and do something specific at the end of the animation, can be a painful, messy task. Luckily, we have .queue() for [...]...
-
Introducing jQuery API Search10 September 2010, 11:28 am
Half-baked tutorials and plugins have been stacking up for months in my virtual kitchen, waiting for me to fire up the oven, finish the cooking, and spread them out on the table. For some reason, though, I've become less and less sure about whether I've put all the right ingredients into the mix. It's irritating, [...]...
-
Great Ways to Learn jQuery7 July 2010, 3:11 pm
These jQuery resources will set you on the path towards mastering jQuery. Written Articles Getting Started with jQuery - this is the official jQuery getting started guide. jQuery for JavaScript Programmers - Simon Willison (creator of django) gives you an introduction to jQuery for people who already understand JavaScript. jQuery Crash Course - Nathan Smith [...]...
-
Autocomplete Migration Guide23 June 2010, 1:28 pm
The jQuery Autocomplete plugin got a successor recently, the jQuery UI Autocomplete. In this guide we'll look at the old plugin API step-by-step, and how to migrate to the new API. At first it may look like the new plugin supports barely any of the old options. We'll see how all the old options can [...]...
-
A jQuery UI Combobox: Under the hood8 June 2010, 10:00 am
Update on 2010-08-17: This article was updated to reflect the changes to the combobox code in jQuery UI 1.8.4 The jQuery UI 1.8 release brings along the new autocomplete widget. An autocomplete adds a list of suggestions to an input field, displayed and filtered while the user is typing. This could be attached to a [...]...
-
Now you see me… show/hide performance4 May 2010, 12:51 pm
I just got back from the jQuery conference in San Francisco. Wow, what an event. In addition to some incredible talks, I had the opportunity to speak with Rey Bango, Johnathon Sharp, and, of course, John Resig. Any conference where you get to talk to some of the most influential people in jQuery is a [...]...
-
Accessible Showing and Hiding23 April 2010, 1:42 pm
Editor's Note: When I started this blog nearly three years ago, one of the first things I did was write a series on showing and hiding elements on a page. The posts were very basic, as was my knowledge at the time. At best, they demonstrated an incomplete answer to the question of how to [...]...
-
jQuery 1.7.2 Beta 1 Released1 February 2012, 1:33 am
Hey there Internets, it’s the jQuery Core team! We haven’t talked in a while, but over the holidays we were busy fixing the bugs you reported. The result of that hard work is jQuery 1.7.2 Beta 1. We decided to get a beta out by Groundhog Day so you wouldn’t be in the shadow of [...]...
-
Plugins Site Update: The Old Is New Again13 December 2011, 4:44 pm
We’ve gotten a lot of feedback since last week’s announcement about the plugins site’s unfortunate tumble into oblivion, and I’d like to address a few of the most important concerns that have surfaced since. “Could you make the old backup available for posterity?” Yes. We can — and have. Over the weekend, we restored the [...]...
-
What Is Happening To The jQuery Plugins Site?8 December 2011, 9:20 pm
For about a week, instead of hosting several hundred jQuery plugins and several thousand advertisements for laptop batteries, our plugins repository has been serving up a pretty pathetic message about spam and an allusion to some “new submission process.” This happened very suddenly, and we’re sorry to everyone who’s been inconvenienced. Please allow me a few minutes to explain [...]...
-
jQuery Conference 2012: UK – Training Workshops Announced29 November 2011, 3:56 pm
We are very happy to announce two training workshops for this years United Kingdom conference. The trainings will be given by Doug Neiner, Ralph Whitbeck and Mike Hostetler of appendTo. The general admission tickets for the conference are now sold out but you can buy conference/training bundles and still attend the conference. appendTo will be [...]...
-
Call for jQuery 1.8 Ideas22 November 2011, 6:28 pm
We’re ready for our next round of community input, this time for version 1.8! This is your chance to suggest things we can fix, add, change, or remove in jQuery to make it better. You can add a suggestion using this form; whenever possible provide links to a bug report, a page with a detailed [...]...
-
jQuery 1.7.1 Released22 November 2011, 2:39 am
Here in the United States, we’re celebrating Thanksgiving this week. For those of you living elsewhere in the world, it’s a time when we install and test new versions of Javascript libraries while feasting on Mom’s homemade goodies. Kind of like a code sprint, but with better food. We invite everyone worldwide to join us [...]...
-
Getting Board of jQuery18 November 2011, 10:11 pm
TL;DR The body responsible for overseeing jQuery’s finances and administration, which was until today known as the jQuery Team, is now called the jQuery Board. The jQuery Team is for anyone who invests a significant amount of time contributing to jQuery and its related projects. As jQuery has grown from a cool idea in 2005 [...]...
-
jQuery 1.7.1 RC1 Released18 November 2011, 12:35 am
Just to let you know we’re not asleep at the switch around jQuery Central, we’ve got a new preview release of jQuery. It fixes the problems reported by the community since the original 1.7 release. Please test the code in your applications, making sure that there are no major problems. If you tried jQuery 1.7 [...]...
-
Upcoming jQuery Events11 November 2011, 6:08 pm
jQuery Summit 2011 It’s that time of the year again (no, not Christmas!, something almost better!) – the annual (online) jQuery Summit. This year Environment For Humans (E4H) have a terrific line-up including sessions on jQuery plugin authoring best practices, creating interactive experiences with HTML5 and Popcorn.js and best practices for testing your jQuery code [...]...
-
Building a Slimmer jQuery8 November 2011, 8:42 pm
jQuery is more than five years old now! Over that time it has evolved along with the browsers, web sites, devices, developers, and users that it serves. It has also, um, grown quite a bit over that time. jQuery has added a lot of useful features, but it’s also accumulated cruft that we’d prefer not [...]...