Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A quick template for extending javascript/jQuery functionality
1
527
posted 13 years ago by nikefido
A template of a basic jQuery plugin, including over-ridable options
3
719
posted 13 years ago by nikefido
A small plugin that you can use in the jQuery chain to delay the next in queue. For those using a jQuery library pre 1.4 (v1.4 + has .delay() ).
$('.notice').fadeIn().idle(2000).fadeOut('slow');
0
557
posted 13 years ago by Meander365
I found this really useful when using AJAX that will change database. Preventing the user to re-do the action is not the best way but it still is a little unobtrusive to the user as it lets him navigate the page and know what is going on.
2
818
posted 13 years ago by verhaeg
jQuery
jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist
0
842
posted 13 years ago by brandonjp
jQuery
js javascript browser language detection, get the user\'s browser\'s language preference setting using jquery to detect users br
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1
1224
posted 13 years ago by brandonjp
Related Categories: jQuery, Tips
We've all heard the best practices recommendation to load jQuery (or other JavaScript libraries) from a CDN, such as Google's for performance reasons. But what happens if, in the rare chance, Google's network is do...
2
774
posted 13 years ago by stancox
jQuery
js - jQuery - jQueryLoader - check if $ is undefined, then load jquery with pure javascript if needed
0
856
posted 13 years ago by brandonjp
This is a simple way to scroll to the top of the page, when an anchor tag has been clicked. Note that we must "return false," in order to disable the default browser action.
1
1282
posted 13 years ago by Nettuts
forms part of our Calibre Remote. an alternate gui for calibre ebooks content-server.
0
446
posted 13 years ago by minky
jQuery
JS, JQUERY : mettre une fonction en queue et annuler l'exécution d'une fonction en queue avec queue(), dequeue(), clearQueue()
ici on souhaite qu'une info s'affiche aux survole d'un <li> mais seulement une fois qu'un délai de 650 millisecondes est passé. Cependant si l'user ne survole plus la zone avant la fin du délai, il faut interrompre l'affichage de l'info. Voilà un...
0
816
posted 14 years ago by alexandrepayet
on using any wysiwyg editor (f.e. CKEditor) is inserted link to anchor on same page in this form: [a href="#anchor"]text[/a]
if on web site is used tag BASE, anchors links are wrong - on all page are on this url: www.domain.com/#anchor
this fun...
0
672
posted 14 years ago by knedle
jQuery plugin that let you specify a maximum length on a text field and optionaly specify the change the focus when that maximum length has been reach. Nice when making multiple input text to create a telephone form.
Example: $("#telephone_1").maxLe...
0
517
posted 14 years ago by frankyfish
What it does is look for img tag and on rollover change the source path from "anyimage.jpg" to "anyimage_hover.jpg". It add the suffix "_hover" at the end of the src name without changing the extension. If you look at the code you will see that it al...
0
615
posted 14 years ago by frankyfish