Welcome To Snipplr
Everyone's Recent Snippets Tagged ajax
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
#modal would be the bodyID of your modal window. I use jqmodal so it strips out all the header tags, and takes your body ID and turns it into a div.
2
757
posted 16 years ago by kristin
libreria que mediante ajax y javascript permite paginar los contenidos de una tabla
0
629
posted 16 years ago by victorchamorro
Simply replaces the div's innerHTML with the response text received from the file.
3
1534
posted 17 years ago by 1man
This function allows you to parse a simple XML document(passed to it using this.href on a onclick event). Virtually the same as JSON, the things that have been changed ate labeled !Important.
3
1072
posted 17 years ago by 1man
This function is near enough the same as parsing XML. The only things that have changed are the sections marked !important.
3
1096
posted 17 years ago by 1man
Very basic grab a line of text from a file then display it in an alert box. Uses other functions for loading prepareLinks() and creating the request.
2
1000
posted 17 years ago by 1man
This functions allows you to create a new XMLHTTPRequest, it checks to see if the browser supports each method, if not it returns false.
4
1135
posted 17 years ago by 1man
El modo de uso es el siguiente:
function cargarContenido()
{
var p = new Request("prueba2.asp",respuesta);
p.setMethod("GET");
p.addParam("saludo",$("txtSaludo").value);
p.addParam("telefono",$("txtTelefono").value);
p.callRequest();...
3
872
posted 18 years ago by enzoscuro
A simple function to check if the request comes from an AJAX XMLHttpRequest.
Use it if your page should behave differently when called from AJAX.
Comes from jquery mailing list: http://jquery.com/discuss/2006-June/006656/
29
6970
posted 18 years ago by TC
Often PHP can't interpret POST data because it is not form-encoded. This is typical when the post data is XML from API's like Flash's XmlSocket. You can use the following methods to read the POST data directly.
1
1628
posted 18 years ago by mthorn
Ejemplo de cómo utilizar el objeto Ajax.Responders de Prototype.
El ejemplo hace uso de Scriptaculous.
3
822
posted 18 years ago by sendoa
The stylesheet for the LoadingMessage object (http://snipplr.com/view/347/loadingmessage-for-ajax-requests/).
11
1119
posted 18 years ago by dertimbo
Creates a notification message for AJAX requests.
Dependencies: prototype.js, script.aculo.us.
CSS-Styles: http://snipplr.com/view/348/loadingmessage-for-ajax-requests-css/
11
1031
posted 18 years ago by dertimbo