[jQuery] Beginner needs help with jquery and ajax
Hello,
I basically want to catch any ajax request sent by my app and display an alert.
I have tried this to no avail:
<b><font size="1"><span style="font-family: courier new,monospace;">jQuery("*").ajaxSend(function(event,request, settings){</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> alert('called');</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">});</span></font></b>
whenever an ajax request is made the alert does not show...
note that the ajax request is made by the richfaces framework using an a4j:commandButton.
Can anyone please advise,
Thanks in advance,
Julien.