Perhaps you could use $.ajaxStart and $.ajaxStop for this.
On $.ajaxStart, set a global variable "ajaxInProgress = true" or something
like that. Then set it false on $.ajaxStop.
In beforeSubmit, check the status of variable ajaxInProgress and act
accordingly.
-- Josh
----- Original Message -----
From: "Gordon" <
gordon.mcvey@ntlworld.com>
To: "jQuery (English)" <
jquery-en@googlegroups.com>
Sent: Monday, March 17, 2008 9:44 AM
Subject: [jQuery] AJAX Forms: Checking for an in-flight XHR