Is there a way to automatically append some parameters in every ajax call's query string?
"ajaxStart" event doesn't send ajax options to callback function, so there is not way to modify the query string. "ajaxSend" event doesn't work with GET request, because the query string is already appended to the url and xhr is already open, so there is no way to change the url. For "beforeSend", it's the same as "ajaxSend". Set global setting in ajaxSetup will not work, if "data" is specified in individual ajax calls. I'd like to add parameters like 'mode=ajax' to make server respond as little data as posible(e.g, no header, no footer), and degrade gracefully. I have many ajax calls to make, and adding these parameters to every single of them manually is very tedious. So how can I achieve this in jQuery? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---