Re: [問題] ajax與google map的問題
※ 引述《zqooz (.....)》之銘言:
: 使用php+ajax從mysql撈出資料做出分頁
: 但是整合在有google map的網頁上
: 卻無法顯示 QQ
: 這個問題困擾小女子很久
: 原本分頁都可以顯示
: 只是加到google map申請key後給的程式碼body中的另一個div中
: 雖然map跟顯示分頁的位置有分開
: 但卻無法同時都顯示
: 有人知道是為什麼嗎??
看了一下,我本身自修也是有這個問題,在一個有基本GMAP的php中,
include了一個使用ajax做的分頁,但是在瀏覽器中開卻無法顯示,
不知道是什麼原因,我是初學者,想請高人指點一下。給大家看我的code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="" rel="nofollow">http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<style type="text/css">
#message{
position:absolute;
top:300px;
left:800px;
}
#map{
top:500px;
right:20px;
}
</style>
<script
src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAN4ccOHjuXZLgxLA1F1dHdRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQYwffaCcxujLKhP8pLnvSKxECg8A"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 50px; height: 30px"></div>
<div id="message">
<?
include("ajaxeverybody.html");
?>
</div>
</body>
</html>
CSS只是要確認他不是被蓋住了而已。
分頁確認過沒有問題就不放上來了,希望這樣有比上一個問的人更清楚!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.139.131.59
※ 編輯: sinnypan 來自: 220.139.131.59 (10/04 15:55)
推
10/04 16:01, , 1F
10/04 16:01, 1F
→
10/04 17:07, , 2F
10/04 17:07, 2F
→
10/04 17:07, , 3F
10/04 17:07, 3F
→
10/04 17:40, , 4F
10/04 17:40, 4F
→
10/04 17:41, , 5F
10/04 17:41, 5F
→
10/04 17:41, , 6F
10/04 17:41, 6F
→
10/04 17:42, , 7F
10/04 17:42, 7F
推
10/04 18:02, , 8F
10/04 18:02, 8F
→
10/04 18:21, , 9F
10/04 18:21, 9F
→
10/04 18:22, , 10F
10/04 18:22, 10F
→
10/04 18:41, , 11F
10/04 18:41, 11F
→
10/04 18:41, , 12F
10/04 18:41, 12F
推
10/04 18:45, , 13F
10/04 18:45, 13F
→
10/04 18:46, , 14F
10/04 18:46, 14F
→
10/04 18:46, , 15F
10/04 18:46, 15F
→
10/04 21:15, , 16F
10/04 21:15, 16F
討論串 (同標題文章)
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章