This project has moved and is read-only. For the latest updates, please go here.

Call event from other form

Topics: Web Controls
Nov 30, 2008 at 4:13 AM
Edited Nov 30, 2008 at 4:14 AM
Hi all,
I have not solution for this case
Please help me:

Here is my case :
I use Map Ajax
there are 2 pages
Page 1 : have MapAjax. This page call show Popup to show page2
Page 2: call submit button. It will close this Page and call  event reload MapAjax in Page1.

I have not any solution for this case. So can  somebody help me.
Many thanks!

Dec 1, 2008 at 8:27 AM
Hi sdd, in page1 you need to write a javascript function to reload your map lets call it reloadAjaxMap.

function reloadAjaxMap(){
//do any processing and refresh the map

in page2 when you are ready to return to page1 call backToPage1 which looks like:

function backToPage1(){
    var page1 = window.opener;

if you need to use any variables collected in page 2 to reload page 1 you can add them as arguments in the reloadAjaxMap function and pass them in when it is called. hth jd 
Dec 1, 2008 at 6:41 PM
Thanks Johndiss,

I need the code ( javascript function, ex : SetVars_Control1_ajaxMap(); )  to reload AjaxMap.

Dec 1, 2008 at 10:17 PM
Hi sdd, I dont really use the ajax control so I may be wrong but I think you just need to call


where obj is a reference to your ajaxmap control. hth jd