You could also push more info into the data array, using the 'beforeSubmit' right ? Although, is Mike's option is a possibility, that's always cleaner.
Cheers Ariel Flesler On 6 mar, 10:52, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > Is there a "better" way to add this extra parameter without having add > > an element to the DOM like this? > > The better way is to have the server detect that the request was > submitted via ajax and respond accordingly. You can determine this > on the server by inspecting the "X-Requested-With" header. It will > have a value of "XMLHttpRequest" when the request originates via XHR. > > Mike