Hi,
How would I be able to find out the caller/sender of an event on binding.
$(this).bind("submit", function(caller) { ... });
I found out that I could use "caller.originalEvent.explicitOriginalTarget", but this only works in firefox.
EDIT:
I'm using the jquery validation library from position-relative.net I want to make it so that if a button has a class called "bypass" on the sender, that makes the validation engine just return true so the form can be submitted. I.e. I'm using ASP.NET, and all button presses are postbacks (form submits). I'm just looking to make a back button.
I've added this code
if ((caller.originalEvent.explicitOriginalTarget != null) && (caller.originalEvent.explicitOriginalTarget.className == "bypass")) {
return true;
}
on line 71, just under this line
$(this).bind("submit", function(caller) { // ON FORM SUBMIT, CONTROL AJAX FUNCTION IF SPECIFIED ON DOCUMENT READY
Thoughts and suggestions appreciated.
Thanks