views:

825

answers:

1

Hey

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  A: 

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. :)

william