Via PHP, i’m generating some JavaScript code, witch looks like this:
<script type="text/javascript">
$(window).load(function() {
maps.showUsers('Odenthal, Germany',1);
maps.putCenter(51.1833,7.2);
});
</script>
I have to be sure, that the first line is executed before the second line. This works fine in IE and FF, but not in Chrome. How can i control it?
Try this with some delay. You can set the appropriate delay as per your need.