1
我写这篇文章的代码为我的网页:
如何用asp.net按钮调用java脚本函数?
<script>
function initialize() {
var mapProp = {
center: new google.maps.LatLng(51.508742, -0.120850),
zoom: 7,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
}
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.googleapis.com/maps/api/js?key=&sensor=false&callback=initialize";
document.body.appendChild(script);
}
window.onload = loadScript;
</script>
我希望在asp
按钮click
初始化功能,并设置该行的新值:
center: new google.maps.LatLng(51.508742--->Load from asp:Text1, -0.120850--->Load from asp:Text2)
我怎么能做这个?
什么是calljs?我怎样才能发送新的价值从asp文本框功能? –
我的朋友,我想要当我点燃按钮发送文本框值为JavaScript初始化()函数。 –
检查updatd – Jag