Hi, I have this problem, I could not load my map in my page if i am using the jquery.load(), but when i directly dial to the url like http://localhost/test/toOtherpage.php
it will load my map.can you help me please what is wrong with my addDomlistener why it will not bind to the window..


Thank you in advance.

here is my code

index.php

Code:
  $('#link').click(function(){
     $('container').load('toOtherpage.php');
  });
 .....
 .....
......
  <html>
    <body>
      .......
      ......
      .....
        <div id="container"></div>
  </body>
 </html>

toOtherpage.php

Code:
     .........including some js file here ........
     ...................
     ...................
     <script type="text/javascript">
         function initialize(){
             some statement here .......
             .............
             ............
        }
               
        google.maps.event.addDomListener(window, 'load', initialize);
         
    </script>