Mike, I was actually trying to understand your jQuery Form Plugin, where you use an iframe for file uploads. You call $.event.trigger("ajaxStart"), and this is what I wanted to do. I was creating a small site specific script that can use ajax or an iframe to submit a form, but I wanted to use the same ajax events for each, similar to how you did in your plugin. I would also be interested in just learning how your method works.
Thanks! On Nov 4, 4:02 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > 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/