[jQuery] Trigger ajax event on iframe load

[jQuery] Trigger ajax event on iframe load


I am trying to trigger an ajax event when my iframe is loaded. I kind
of understand the concept, but I am slightly confused. If I do get
the even triggered after my iframe has loaded, what do I do to get the
fake ajax event to use a function?
$('#testFrame').load(function () {
$.event.trigger('success');
});
Basically I want to run a function when a link is clicked to load
content into an iframe, and then run another function when the iframe
content has loaded.
Thanks!