Welcome To Snipplr
Everyone's Recent jQuery Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
works in all the major browsers that support adding to bookmarks, FF, IE, Opera. Safari and Chrome dont support this, so for them, a nice message :)
1
1214
posted 14 years ago by prwhitehead
This is how you can add a file/image upload tool to your forms and have AJAX store the file with PHP and return a thumbnailed version to the user for display on the form. Nice.
2
943
posted 14 years ago by jquery4u
Use jQuery get rss (with JavaScript) to get a blogs (or websites) display rss feed on your web page.
1
843
posted 14 years ago by jquery4u
This is how you can create page box elements that are loaded via AJAX and can be refreshed instantly without a whole page reload.
0
770
posted 14 years ago by jquery4u
These days when you are using forms you need some sort of protection from bots and spammers.
2
808
posted 14 years ago by jquery4u
So today I created a html image map which creates dynamic links based on the color of the pixel that the user clicked.
0
876
posted 14 years ago by jquery4u
No need to create a seperate function for this one. Just one line to clear the default value on click and leave the value when it has been altered.
1
908
posted 14 years ago by dyteq
Valiodate a form with jQuery.Validate and submit it with jQuery.form
1
801
posted 14 years ago by marzsman
Execute function / action when an element has loaded or clicked.
Originally seen here: http://www.codingforums.com/archive/index.php/t-144582.html
0
834
posted 14 years ago by reverend
Basically, if the value has already been requested once before it's returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn't care about any of this; all you need to be concern...
0
1047
posted 14 years ago by crypticsoft
simple jquery plugin that powers the text auto-resizing that is the basis of textagon.com
0
783
posted 14 years ago by secretgspot
$('#contentbox').keyup(function(){} - contentbox is the ID of the textbox. Using $(this).val() getting the textbox value. bar is the div ID of the count meter $('#bar').animate() increasing the width.
0
2064
posted 14 years ago by atik
Example of how to display HTTP error code and message on ajax response
0
893
posted 14 years ago by anagaiyahoocom