Thank you but i have solved my problem. I was running the function before the page was fully loaded as mentioned in the thread above. Problem was solved after reading this article.... http://www.webdeveloper.com/forum/showthread.php?t=174286
On Jul 6, 10:21 am, Gremlin1708 <[email protected]> wrote: > Hi there... > Can someone please advise me how to fix this problem. I sit with a > situation where the user have a listbox of items to choose from and > then when he click on the listbox i do a postback to the server to get > more info from the DB and then i do a ClientScript Register to > activate a InfoWindow "script" to run when the page loads. > > Now this gives me an undefined error when i execute it. I have gone > the other way to test it by putting a button OnClienClick event and > that then works fine. It does not do the postback to the server (so it > does not get the correct info) but atlease i have figured out where > the problem lies. Now i just need your advice on how to fix it. I want > the map to first be loaded and only after that i want to execute the > "popupInfoWindow" script. > > Any advice? -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
