jQuery.ajax beforeSend callback is not returning the right result
<p>I understand that jQuery.ajax provides "beforeSend" callback. If this callback returns false then entire request is cancelled.</p>

<p>I verified that here <a href="http://jsfiddle.net/neerajdotname/9dBRY/10/" rel="nofollow">http://jsfiddle.net/neerajdotname/9dBRY/10/</a> .</p>

<p>However take a look at slightly modified version <a href="http://jsfiddle.net/neerajdotname/sLnY8/6/" rel="nofollow">http://jsfiddle.net/neerajdotname/sLnY8/6/</a> </p>

<p>In this case beforeSend callback is triggering a previously registered event. The returned value of that trigger is used to determine if request should be cancelled or not.</p>

<p>As you can see I am returning false from triggered call. However that returned value is not equal to false.</p>
