I like this approach. Could you create an enhancement ticket for this?
-- Brandon Aaron On 4/10/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>They should already be able to do that with the beforeSend option[1][2], >but your way looks easier > >[1] http://docs.jquery.com/Ajax#Options >[2] http://dev.jquery.com/browser/trunk/jquery/src/ajax/ajax.js#L644 One other benefit with my change, is you could get rid of this line: 637 // Set header so the called script knows that it's an XMLHttpRequest 638 xml.setRequestHeader("X-Requested-With", "XMLHttpRequest"); And replace it with: 462 ajaxSettings: { 463 global: true, 464 type: "GET", 465 timeout: 0, 466 contentType: "application/x-www-form-urlencoded", 467 processData: true, 468 async: true, 469 data: null, 470 headers: {"X-Requested-With": "XMLHttpRequest"} 471 }, -Dan