Append parameter to url during ajax call with jQuery
I need to append a p开发者_如何转开发arameter in the url called by a ajax call.
I need something like this: jQuery(document).ajaxStart(functionThatAppendsParameterToUrl);
I think you want to use ajaxSend
rather than ajaxStart
. Your function is called with the event, request and settings as parameters. If I understand correctly what you're trying to do, you should be able to modify the settings to include your parameter.
Here the solution
http://forum.jquery.com/topic/append-parameter-to-url-during-ajax-call-with-jquery
Massimo
I think it might be that you're using type: "POST"
instead of type: "GET"
精彩评论