开发者

Google Maps won't load inside a .php file

开发者 https://www.devze.com 2023-03-08 13:43 出处:网络
Well, my issue is that when I\'m trying to load a google maps script inside a maps.php file, it won\'t load.

Well, my issue is that when I'm trying to load a google maps script inside a maps.php file, it won't load. But when I change the file ending to maps.html开发者_如何学JAVA it works just fine. What is causing this problem?

Regards / Denis


This line is probably why:

downloadUrl("loadTest.php?myAdId="+ "<?php echo $ad_id; ?>", function(data){

There are a few references to real PHP code, so it must be failing... HTML is just echoing the PHP code and if you tested some functions it would still break.

0

精彩评论

暂无评论...
验证码 换一张
取 消