任何人都可以在ASP.NET中使用Google Places自動完成API的包裝? http://code.google.com/apis/maps/documentation/places/autocomplete.htmlASP.NET中的Google Places自動完成
樣品或方法是高度讚賞。
感謝
任何人都可以在ASP.NET中使用Google Places自動完成API的包裝? http://code.google.com/apis/maps/documentation/places/autocomplete.htmlASP.NET中的Google Places自動完成
樣品或方法是高度讚賞。
感謝
這裏演示的鏈接...的谷歌的地方自動完成...
http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html
右鍵單擊瀏覽器,查看頁面源......你能找到辦法。 ......怎麼辦呢....
相關文件..從這裏找到...
在谷歌的API第3版,它們表明,包括本剪斷的例子:
function fillInAddress() {
// Get the place details from the autocomplete object.
var place = autocomplete.getPlace();
for (var component in componentForm) {
document.getElementById(component).value = '';
document.getElementById(component).disabled = false;
}
// Get each component of the address from the place details
// and fill the corresponding field on the form.
for (var i = 0; i < place.address_components.length; i++) {
var addressType = place.address_components[i].types[0];
if (componentForm[addressType]) {
var val = place.address_components[i][componentForm[addressType]];
document.getElementById(addressType).value = val;
}
}
}
然而,在ASP.NET一個需要使用的格式的document.getElementById(」 <%= controlname.ClientID%> 「)
如何在上面的fillInAddress()中創建語法以傳遞」組件「對象並創建正確的語法以使其工作?謝謝
請看看...並給我評論..如果你找到。任何問題。 – sikender
你應該給予評論,如果它可以幫助你... – sikender