View Full Version : How to update and execute existing(client-side) java sctipt

Feb 16, 2010, 9:59 AM
Hi All,

I do not know how to update data in my google map on ajax event.

On page load I use google map API to generate server-side java script and call ClientScriptManager.RegisterStartupScript(...).

After 30 seconds I want to update map. Client-side generates axaj event, but I do not know how to
execute new server-side generated google map java script.

There is not problem for me when I work with PostBack. I generate server-side java script and
call ClientScriptManager.RegisterStartupScript(....) again, but I want to use Coolite ajax events.

Any idea.
Thanks in advance.

Zhivko Tropchev

Feb 16, 2010, 10:17 AM

Any Coolite control (including ScriptManager) has AddScript method which can register a script during AjaxEvent

Feb 16, 2010, 10:30 AM
Thank you Vladi,

I am new in Coolite library. I want to ask you is this right approach to register new java script or
I have to use ux:GMapPanel.
Will I have update problem if I use ux:GMapPanel and ajax events.