【发布时间】:2013-12-13 10:44:46
【问题描述】:
我在服务器端使用 extjs4 和 Spring。我需要在 extjs4 表单之一中集成 Google Places Auto-complete。有什么办法可以做到这一点。我不确定我们是否可以将 Google 自动完成功能与我搜索过的 extjs 集成,但找不到更符合我要求的内容。请指导我.....看看我的代码......
Ext.define('abce.view.ReportMissing', {
extend : 'Ext.panel.Panel',
alias : 'widget.report_missing',
bodyPadding : 10,
autoScroll : true,
frame : true,
items : [{
id : 'report_form',
xtype : 'form',
frame : true,
defaultType : 'textfield',
items : [{
xtype : 'combobox',
store : new Ext.data.Store({
autoLoad : true,
//fields : ['memberName', 'email'],
proxy : {
type : 'ajax',
headers : {
'Content-Type' : 'application/json',
'Accept' : 'application/json'
},
url : 'http://maps.googleapis.com/maps/api/geocode/json?address=hyd+&sensor=false',
remoteSort : true,
method : 'GET',
reader : {
type : 'json',
successProperty : 'status'
}
}
})
}]
});
https://developers.google.com/places/documentation/autocomplete
【问题讨论】:
标签: javascript extjs google-maps-api-3 extjs4.2