开发者

How do i use the extraParams in Jquery Autocomplete?

开发者 https://www.devze.com 2023-03-19 17:46 出处:网络
Am using Django and i want to access extraParams data of Jquery Autocomplete. my Autocomplete code looks like this .

Am using Django and i want to access extraParams data of Jquery Autocomplete.

my Autocomplete code looks like this .

$("#power-search").autocomplete("/power_search_lookup/",{
type:"post",
extraParams:{model_name:function(){ return PMS.power_search_model_name;}},
width:320,
muliple:false,
multipleSeparator:",",
scroll:true,
scrollHeight:300,
delay:10,
formatResult:format_p开发者_如何学编程ower_search
});

From django how do i get to read model_name

Gath


Its working ...

This Parameter was empty when i was sending it to the server! when it has a value it works well.

PMS.power_search_model_name;

Thanks.

0

精彩评论

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