Hi
I post here to share a piece of code that I am starting to use daily
to perform easy ajax calls. The plugin refers to an A tag and use the
Href attributes to make the call filling up a #ajaxContent div on the
page with the server resposnse.
The plugin manage:
1) the display of a loading message ( an img if you want )
2)  the error message ( cutomizable) display if needed
3) the call of course
4) the loading data in the div
5) the event is click but is customizable as you prefer as of course
the target element.

Is nothing special nut I love to set up my standard ajax like thi:

$('.ajax').ajaxContent();

and let the plugin do the work for me.

An example/APi is available here:

http://www.andreacfm.com/examples/ajaxContent/

let me have your feedback

Andrea

Reply via email to