Timeline for Should I treat direct CFC Calls differently than Page Requests?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 4, 2011 at 18:04 | comment | added | Bradley Moore | Great info to digest. If I was primarily calling CFC's for AJAX requests, then I'd probably leave in the conditional. It also makes sense to remove the conditional to keep inline with CF9. | |
Oct 4, 2011 at 18:01 | vote | accept | Bradley Moore | ||
Oct 4, 2011 at 10:15 | comment | added | Steve -Cutter- Blades | I had to go back and check the JQuery docs again, as I was sure I had read it the other day. Sure enough, documentation of the .ajax() method options tells you this about the beforeSend option: "A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent." api.jquery.com/jQuery.ajax | |
Oct 3, 2011 at 13:11 | comment | added | Bradley Moore | That's interesting. jQuery 1.6.2 and 1.6.4 send X-Requested-With headers. The reason why I created the isAJAXRequest function was to allow for inevitable change. I'm curious about the second condition. Have you found an X-Requested-With header that wasn't XMLHttpRequest? | |
Oct 2, 2011 at 12:26 | history | answered | Steve -Cutter- Blades | CC BY-SA 3.0 |