ThinkGeo.com    |     Documentation    |     Premium Support

JavaScript PageLoad() Event not firing

Hi,


I am attemping to use the JavaScript PageLoad() event in my application, but cannot seem to get it to fire. Is anyone else having this issue with the Beta 3 version?



Steve, 



Thanks for the post and for your sample codes, which I got from our support. 



In 3.0, you cannot use pageLoad() directly but you can use method OnMapCreated() instead. It’s a method called by the pageLoad and you can implement as following. 



Copy the following code inside the html header and you can see the effect. 


<script type="text/javascript">
        var OnMapCreated = function(map){
            alert("PageLoad");
        }
    </script>



Thanks for pointing it out, we will involve this in our client part documentation. 



BTW, I think when you mentioned Beta 3, what you really mean is Web Edition 3.0 right? As we support PageLoad() method in 2.0 and override it from the first version of 3.0. Also we just released Beta 2 a couple days ago:)



Ben