开发者

Append parameter to url during ajax call with jQuery

开发者 https://www.devze.com 2023-01-25 18:45 出处:网络
I need to append a p开发者_如何转开发arameter in the url called by a ajax call. I need something like this:

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"

0

精彩评论

暂无评论...
验证码 换一张
取 消