def ajax_lookup(request,channel):
这是我的观点之一。我使用它来做自动完成
这是它的js。我得到一个明显的错误,即较小的否定。当我发送1代替2时发送的属性。如何发送第二个参数?
<script type="text/javascript">
Ext.onReady(function(){
{% autoescape off %}
var searchTable = new GeoNode.MapSearchTable({
renderTo: 'search_results',
trackSelection: true,
permalinkURL: '{% url ajax_lookup %}',
searchURL: '{% url ajax_lookup %}',
searchParams: {{init_search}}
});
{% endautoescape %}
});
</script>
答案 0 :(得分:0)
可能会解决这个问题吗?
<script type="text/javascript">
Ext.onReady(function(){
{% autoescape off %}
var searchTable = new GeoNode.MapSearchTable({
renderTo: 'search_results',
trackSelection: true,
permalinkURL: '{% url views.ajax_lookup channel.id %}',
searchURL: '{% url views.ajax_lookup channel.id %}',
searchParams: {{init_search}}
});
{% endautoescape %}
});
</script>