Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged ajax



« Prev 1 2
Make a simple XHR Request: get(url, function(resp)(){ window.alert(resp); }); Source is minified.
0 2699 posted 11 years ago by geneticcode
More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after
0 2819 posted 12 years ago by rickygri
Include any external text file within html; HTML, CSS and Javascript all work.
0 2764 posted 12 years ago by nshakin
simple code of using Ajax by JavaScript or jQuery
0 2107 posted 13 years ago by codingforever99
This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
0 2069 posted 13 years ago by rickygri
0 2574 posted 14 years ago by devnull69
0 1528 posted 14 years ago by devnull69
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 1411 posted 15 years ago by jafar
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 2142 posted 15 years ago by LeeProbert
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 1349 posted 15 years ago by freelancephp
You may need to change the IDs around.
2 1742 posted 15 years ago by joshvermaire
0 1583 posted 15 years ago by danhanly
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 1953 posted 15 years ago by FatFolderDesigner
Just a fun and silly way to asynchronously update tweets about Justin Bieber.
3 2135 posted 15 years ago by Nettuts
0 1430 posted 15 years ago by marzsman
Avoid *.js upload confusions. Use http://code.google.com/apis/ajaxlibs/
0 1537 posted 16 years ago by ialexs
1 1539 posted 16 years ago by wdso
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the...
0 1888 posted 16 years ago by cardiffblogger
Load this Javascript after the MS AJAX files have been loaded. In the example I am using jQuery to call the patchMicrosoftAjax() method, but you can use any method you desire.
0 2570 posted 16 years ago by jink
0 1229 posted 16 years ago by rportela
0 1442 posted 17 years ago by rifat
0 1495 posted 17 years ago by davebowker
this funciton returns an XMLHttpRequest object for use in ajax pages
1 1875 posted 17 years ago by jlvallelonga
1 1626 posted 17 years ago by aadsm
1 1564 posted 17 years ago by manec
« Prev 1 2