dongshen7561 2009-08-31 08:08
浏览 35
已采纳

在ajax div中加载谷歌地图问题: - / - jquery

I got some problems loading google map into a jquery $.post...

the output is correct in firebug.. but it wont show the map :-/

Any idea how to fix?

 $.post('/ajax/index.php', {action:somedata}, function(data){
     $(div).slideDown(500,function(){
         $(div).html(data);
      });
 },'html');

and then I load the data via. echo in the /ajax/index.php action

<div id="map" style="width: 540px; height: 500px; align:center;"></div>
  • 写回答

1条回答 默认 最新

  • duanhanzi8328 2009-08-31 11:18
    关注

    i found the solution ..

    in the ajax file i did this: <img src="/gfx/blank.gif" alt="" onload="load();" />

    The problem was that it did't initialize() the page, when clicked... but it does now. :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器