开发者

How do i use the extraParams in Jquery Autocomplete?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜