Welcome To Snipplr


Everyone's Recent Snippets Tagged ajax



0 812 posted 13 years ago by devnull69
This is made for a webservice that outputs varaiable data according to user input, ajax is called each time there is a change on the input.
0 967 posted 13 years ago by Cwerther
Enviar datos por medio de $.ajax, propidad de jquery que permite ocupar ajax con php en jquery, se puede ocupar para cualquier cosa
0 968 posted 13 years ago by serialk89
Loading external scripts on demand the smart way with Head JS
0 672 posted 13 years ago by kevinlearynet
Use the rel attribute to specify which "html" file to load. In this case the link is set to the "About" page and will load the about.html file with AJAX and update the site's title and address.
0 752 posted 13 years ago by jafar
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 818 posted 13 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 657 posted 13 years ago by jquery4u
Sometimes you have a load of HTML that is difficult to write up as a String from within a javascript function so this is an example of a simple Panel with an event for after rendering that injects it with content from a file.
0 1037 posted 13 years ago by LeeProbert
0 993 posted 13 years ago by shodan_uk
0 904 posted 13 years ago by supermauerbros
A simple Ajax database app built with the Karrigell web framework for Python; PyDbLite, a non-SQL Python database engine; and JQuery in the browser
0 633 posted 13 years ago by jcastell
Cache control when pulling in scripts, redefined "getScript" function
0 939 posted 13 years ago by lamebollock
0 690 posted 13 years ago by Sullan
Simple ajax object for creating ajax calls. Why use SimpleAjax? - Very small, only 2kb minified - Make a asynchrone or synchrone ajax call ( AJAX / SJAX ) - Use quick methods get() and post() for GET and POST calls - Use load() method for...
0 706 posted 13 years ago by freelancephp
1 990 posted 13 years ago by Savio
6 1146 posted 13 years ago by dropthenerd
When running live filters on large, long scripts you can get old, stale results replacing your new, fresh ones. After all, a search for everything containing 'S" in a large database of city names can take a lot longer than "Seattle", so your script g...
2 1080 posted 13 years ago by FatFolderDesigner
Simple jQuery script to load additional content when you near the bottom of the page, same sorta thing Twitter does (although I originally programed it for a different use). Only thing of remark is the fact that it stores the current highest loaded v...
4 1351 posted 13 years ago by FatFolderDesigner
You may need to change the IDs around.
2 905 posted 13 years ago by joshvermaire
0 791 posted 13 years ago by danhanly
The filter only needs to know which requests need to be returned as JSONP, doesn't care how. Modify "OnBeginRequest" accordinly. If original .asmx doesn't return JSON, extend it like example shows. JSONP only works for GET requests, so don't forget...
0 901 posted 13 years ago by FMalk
As of my ongoing preparation for the 1K tweet :) I was interested to see the 1000th tweet from some friends timeline. And when I didn't find an existing method, I thought I could write few jQuery lines to solve this..
1 968 posted 13 years ago by mikemore
I was working on this for a new site ideal I have, though it might be useful for others. What this does it sent a AJAX POST request every time the as() function is called. Setting the form to run as() onkeyup will essentially make the form submit its...
1 912 posted 13 years ago by FatFolderDesigner
This is a cut down example using custom tabs (you can easily add a custom ajax event to load in content - just follow Ben Alman's example).
0 1068 posted 14 years ago by Meander365
When injecting via jQuery HTML content which contains script tags referencing external scripts, which are then referenced via scripting elsewhere in the injected HTML, some browsers (Chrome) will not wait for the external scripts to load causing the...
2 1097 posted 14 years ago by harikaram