我有這個網頁,其中用於返回其他一些JavaScript錯誤,但似乎我固定的他們,因爲系統現在抱怨不同:)谷歌分析JavaScript錯誤
這裏是頁:
http://www.comehike.com/outdoors/parks/trailhead.php
這裏是JS錯誤我在控制檯獲得:
Unable to post message to http://googleads.g.doubleclick.net . Recipient has origin http://www.comehike.com .
也有這個錯誤,這是非常神祕:
Unsafe JavaScript attempt to access frame with URL http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1884332214318974&output=html&h=90&slotname=6750679790&w=728&lmt=1307311140&flash=10.3.181&url=http%3A%2F%2Fwww.comehike.com%2Foutdoors%2Fparks%2Ftrailhead.php&dt=1307285940734&bpp=5&shv=r20110527&jsv=r20110506&correlator=1307285940857&frm=4&adk=540157337&ga_vid=898509444.1299013740&ga_sid=1307285941&ga_hid=824315563&ga_fc=1&u_tz=-420&u_his=10&u_java=1&u_h=768&u_w=1366&u_ah=720&u_aw=1366&u_cd=32&u_nplug=14&u_nmime=51&biw=1345&bih=149&ref=http%3A%2F%2Fwww.comehike.com%2F&fu=0&ifi=1&dtd=291&xpc=egJ5ygbjaM&p=http%3A//www.comehike.com from frame with URL http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-1884332214318974&output=html&h=90&slotname=6750679790&w=728&lmt=1307311140&flash=10.3.181&url=http%3A%2F%2Fwww.comehike.com%2Foutdoors%2Fparks%2Ftrailhead.php&dt=1307285940734&bpp=5&shv=r20110527&jsv=r20110506&correlator=1307285940857&frm=4&adk=540157337&ga_vid=898509444.1299013740&ga_sid=1307285941&ga_hid=824315563&ga_fc=1&u_tz=-420&u_his=10&u_java=1&u_h=768&u_w=1366&u_ah=720&u_aw=1366&u_cd=32&u_nplug=14&u_nmime=51&biw=1345&bih=149&ref=http%3A%2F%2Fwww.comehike.com%2F&fu=0&ifi=1&dtd=291&xpc=egJ5ygbjaM&p=http%3A//www.comehike.com . Domains, protocols and ports must match.
任何想法爲什麼他們正在發生以及如何解決它們?
這裏是我嘗試在AJAX返回XML:
echo '<markers>';
$str =
<<<EOD
<marker>
trail_id=$trail_id
trailhead_id=$trailhead_id
park_id=$park_id
editor_member_id=$editor_member_id
trailhead_name=$trailhead_name
trailhead_description=$trailhead_description
parking=$parking
cost_details=$cost_details
parking_spots=$parking_spots
is_free=$is_free
wheelchair_accessible=$wheelchair_accessible
bathrooms_nearby=$bathrooms_nearby
lat=$lat
lng=$lng
</marker>
EOD;
echo $str;
// End XML file
echo '</markers>';
沒有看到您的網頁上的錯誤 – Ibu 2011-06-05 19:21:57
您是否試圖通過ajax從不同於請求頁面的域返回xml?我不相信這是瀏覽器允許的。 – 2011-06-05 19:25:43
@jen - 不是它在一個域內。 – Genadinik 2011-06-05 19:35:26