Quantcast
Channel: jQuery – Michael Grosser, the Blog
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

Event delegation with almost any Selector

Always reapply the events to the DOM objects when they are inserted or loaded? NO MORE! There are 3 solutions out there at the moment, jQuery listen, jQuery intercept both by event delegation addict...

View Article



Image may be NSFW.
Clik here to view.

jqUnit the jQuery Test Framework

My last project used jsUnit, but after some searching around, i found a great alternative: jqUnit! It is a simple wrapper around the jQuery testrunner, so it is possible to run it with any library. And...

View Article

Image may be NSFW.
Clik here to view.

Clean TicTacToe with jQuery

I needed a simple Tic Tac Toe game for a easter egg in one of our products, but all games out there are a horrible code mess (think html 3.0 style *urgs* with js calls everywhere and inline styles...

View Article

Image may be NSFW.
Clik here to view.

Unobtrusive Autocomplete Rails Plugin

Auto complete solution, with customizable results (return just the word or word+id…) and no framework dependency, just use a plain text_field + class=> autocomplete and every autocomplete libary you...

View Article

Image may be NSFW.
Clik here to view.

Parsing RSS Feeds via Googles JS Feed API

So far we parsed our feeds with the acts_as_feed Rails plugin but as long as you only want to show them to users, there is an easier alternative: Googles JS Feed API! Result rss feed through google rss...

View Article


Image may be NSFW.
Clik here to view.

jQuery Plugin: A 1kb Simple Slider for Images + Description

I recently set out to find a good slideshow for our homepage, but most of them are monsters, with 20kb code, no thanks… The simples/best solution i found was the s3Slider somewhat simple and looks...

View Article

Image may be NSFW.
Clik here to view.

Javascript untilTimeout, like setTimeout, but waits for success

Perfect for situations that have no clear timeout, but only happen once. Usage untilTimeout(function(){ var elements = $('.foo select'); if(elements.length > 1){ doStuffWith(elements) return true; }...

View Article

Image may be NSFW.
Clik here to view.

jQuery .load extension to indicate loading and errors

// show loading animation and errors inside the container that is being replaced // http://grosser.it/2012/06/21/jquery-load-extension-to-indicate-loading-and-errors $.fn.responsiveLoad =...

View Article


Image may be NSFW.
Clik here to view.

jQuery extension to ajax-ify selected links to stay inside a container

Make your links stay in a container, great for will_paginate / sorting headers and friends Usage // ajaxify all links that have “tab=my_container” in their href...

View Article


Image may be NSFW.
Clik here to view.

Transparant redirect for jquery ajax requests in rails with status code 278

There is no perfect backwards compatible solution out there afaik, but this is getting me pretty close to where I want it to be. instead of redirecting set a empty 278 response (made up status code)...

View Article
Browsing latest articles
Browse All 11 View Live




Latest Images