I have just updated to windows 7 on my development machine -I am running 4.0.40.0 in debug mode on localhost.
When I try to open up a popup window registering it as a startup script:
ClientScript.RegisterStartupScript(Me.GetType(), "PopupScript", popupScript.ToString())
I receive a JScript runtime error CreateMapMap1 is undefined.
<script type="text/javascript">
//Sys.Application.remove_load(CreateMapMap1);
//]]>
if I continue on it generates:
<script type="text/javascript">
//Sys.Application.remove_load(CreateMapMap1);
//]]>
</script>
<script language='javascript'> window.open('Popup_PrintMapReports.aspx', 'CIAGeneratedPopup', 'status=yes, toolbar=no, location=yes, menubar=no, directories=yes, resizable=yes, scrollbars=yes, height=600, width=650, top=10, left=10') </script>
<script type="text/javascript">
//Sys.Application.initialize();
WebForm_InitCallback();var jsonMap1={"resolutions": ... lots of stuff"};
var parserMap1=new mapParser(jsonMap1);
Sys.Application.remove_load(CreateAllMaps);
function CreateMapMap1(sender,args){parserMap1.createMap();}
Sys.Application.add_load(CreateMapMap1);
var Map1 = new ThinkGeo('Map1');
function CallServerMethodMap1(args, context) {
WebForm_DoCallback('Map1',args,AutoRefreshCompleted,context,null,false);
}
//]]>
</script>
My guess is it is trying to remove CreateMapMap1 before it is created.
Any Ideas? Thanks! Cyndi..