> I am confused when it comes to triggering an ajax event. I would like > to trigger a ajaxStart event, so I use: > > $.event.trigger("ajaxStart"); > > But now, what will that trigger? What piece of code? Do I need to > have an $.ajax() function somewhere, so that when I trigger the > ajaxStart, it will pick up that ajax function? > > Help me understand how these can work together! > > Thanks!
There is no reason for you to trigger ajaxStart, it is done for you automatically when you use any of the ajax functions. Here's a page that demonstrates how the global ajax events work: http://www.malsup.com/jquery/ajax/