PDA

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



Zhivko
Feb 16, 2010, 10: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

Vladimir
Feb 16, 2010, 11:17 AM
Hi,

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

Zhivko
Feb 16, 2010, 11: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.

Thanks.