locked
SCRIPT1002: Syntax error in IE10 RRS feed

  • General discussion

  • Hi,

    I'm seeing

    SCRIPT1002: Syntax error

    leftpane.aspx, line 1 character 30

    in my aspx page in IE10. I don't see any issues in IE9 or previous versions.

    Below I have posted the aspx source code. Am I missing anything here? Please help me.

    Thanks

    <%@ Page language="c#" AutoEventWireup="false" %>
    
    <%@Import Namespace="System.Globalization"%>
    <%@Import Namespace="System.Resources"%>
    <%@Import Namespace="System.Reflection"%>
    
    <%
        Assembly a = Assembly.Load("WebClientResources");
        ResourceManager rm = new ResourceManager("WebClientResources", a);     
    %>
    
    <!DOCTYPE html>
    	<HEAD>
    		<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
    		<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="scripts/menu.js"></SCRIPT>
    		<LINK REL="stylesheet" HREF="webclient.css">
    			<TITLE></TITLE>
    <SCRIPT LANGUAGE="javascript">
    
    var ALL_PATHS = '<%=rm.GetString("ALL_PATHS")%>';
    var NETWORK_VIEW = '<%=rm.GetString("NETWORK_VIEW")%>';
    var FOLDER_VIEW = '<%=rm.GetString("FOLDER_VIEW")%>';
    var ACCESS_EVENTS = '<%=rm.GetString("ACCESS_EVENTS")%>';
    var ADVANCED_SEARCH = '<%=rm.GetString("ADVANCED_SEARCH")%>';
    var ADVANCED = '<%=rm.GetString("ADVANCED")%>';
    var POINT_TYPES = '<%=rm.GetString("POINT_TYPES")%>';
    var AREAS = '<%=rm.GetString("AREAS")%>';
    var ACCESS_DIST_EVENTS = '<%=rm.GetString("ACCESS_DISTRIBUTION_EVENTS")%>';
    var NEW_PERSON = '<%=rm.GetString("NEW_PERSON")%>';
    var NEW_REPORT = '<%=rm.GetString("NEW_REPORT")%>';
    var TOGGLE_CONTENTS = '<%=rm.GetString("SHOW/HIDE_CONTENTS")%>';
    var ALL_OBJECTS = '<%=rm.GetString("ALL_OBJECTS")%>';
    var CX_WEBS = '<%=rm.GetString("WEB_PAGES")%>';
    var EVENT_VIEWS = '<%=rm.GetString("EVENT_VIEWS")%>';
    var GRAPHICS = '<%=rm.GetString("GRAPHICS")%>';
    var GROUPS = '<%=rm.GetString("GROUPS")%>';
    var PERSONNEL = '<%=rm.GetString("PERSONNEL")%>';
    var POINTS = '<%=rm.GetString("POINTS")%>';
    var REPORTS = '<%=rm.GetString("REPORTS")%>';
    var SCHEDULES = '<%=rm.GetString("SCHEDULES")%>';
    var SHOWALL = '<%=rm.GetString("SHOW_ALL")%>';
    var VIDEO = '<%=rm.GetString("VIDEO")%>';
    var DOORS = '<%=rm.GetString("DOORS")%>';
    var TRENDLOGS = '<%=rm.GetString("TREND_LOGS")%>';
    var LOOPS = '<%=rm.GetString("LOOPS")%>';
    var USER = '<%=rm.GetString("USER")%>';
    
    
    var ANALOG_INPUT = '<%=rm.GetString("ANALOGINPUT")%>';
    var ANALOG_OUTPUT = '<%=rm.GetString("ANALOGOUTPUT")%>';
    var ANALOG_VALUE = '<%=rm.GetString("ANALOGVALUE")%>';
    var BINARY_INPUT = '<%=rm.GetString("BINARYINPUT")%>';
    var BINARY_OUTPUT = '<%=rm.GetString("BINARYOUTPUT")%>';
    var BINARY_VALUE = '<%=rm.GetString("BINARYVALUE")%>';
    var MULTISTATE_INPUT = '<%=rm.GetString("MULTISTATEINPUT")%>';
    var MULTISTATE_OUTPUT = '<%=rm.GetString("MULTISTATEOUTPUT")%>';
    var MULTISTATE_VALUE = '<%=rm.GetString("MULTISTATEVALUE")%>';
    var INFINITY_INPUT = '<%=rm.GetString("INFINITYINPUT")%>';
    var INFINITY_OUTPUT = '<%=rm.GetString("INFINITYOUTPUT")%>';
    var INFINITY_NUMERIC = '<%=rm.GetString("INFINITYNUMERIC")%>';
    var INFINITY_DATETIME = '<%=rm.GetString("INFINITYDATETIME")%>';
    var INFINITY_STRING = '<%=rm.GetString("INFINITYSTRING")%>';
    var SELECT_AT_LEAST_ONE = '<%=rm.GetString("MUST_HAVE_ONE_POINT_TYPE_SELECTED")%>';
    var REFRESH = '<%=rm.GetString("REFRESH")%>';
    
    var True = true;
    var False = false;
    
    var bShowingMenu = false;
    var bExploreMode = false;
    
    var bNetworkView = false;
    var bFolderView = false;
    var bAllView = true;
    
    var winMain = window.top;
    
    var bSplitEditorPage = false;
    
    var sFilterType = ALL_OBJECTS;
    var sCustomFilter = '';
    
    var AccessEventsLink = '<%=Session["ACCESSEVENTS"]%>';
    var AccessDistEventsLink = '<%=Session["ACCESSDISTEVENTS"]%>';
    var AreasLink = '<%=Session["AREAS"]%>';
    
    ///////////////////////////////////////////////////////////////////////
    // Preload Images
    
    var imgArrowUp = new Image();
    imgArrowUp.src = "images/arrow_up.gif";
    
    var imgArrowDown = new Image();
    imgArrowDown.src = "images/arrow_down.gif";
    
    ///////////////////////////////////////////////////////////////////////
    var fExplore = <%=(bool)Session["EXPLORE"] %>;
    
    function doLoad(){
    	
    	writeMenus();	
    	
    	if(fExplore)		
    		DoExplore();
    	else
    		DoSearch();
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function DoTimeout(){
    	window.location.href="logOff.aspx?Type=Timeout";
    }
    
    //////////////////////////////////////////////////////////////////////
    
    function TogglePointsDiv(){
    
    	if(document.getElementById("PointsDiv").style.display == 'none'){	
    		document.getElementById("PointsDiv").style.display = '';
    	}else{
    		document.getElementById("PointsDiv").style.display = 'none';
    	}
    	
    	if(bExploreMode){
    		document.getElementById("PointsRefresh").style.display = '';
    	}
    	else{
    		document.getElementById("PointsRefresh").style.display = 'none';
    	}	
    }
    
    //////////////////////////////////////////////////////////////////////
    
    function SetFilter(sFilter){	
    	
    	var strClass = '';
    	var SubMenuHTML = '';
    	var s='';
    	var i=0;
    	
    	switch (sFilter){
    		case GRAPHICS:
    			strClass='142';
    			break;
    		case REPORTS:			
    			if(AccessDistEventsLink!=''){				
    				s = '<a href="' + AccessDistEventsLink + '" class="mainHeader3Link">' + ACCESS_DIST_EVENTS + '</a>';
    				++i;
    			}
    			if(AccessEventsLink!=''){
    				if(i>0) s += '<br>';
    				s += '<a href="' + AccessEventsLink + '" class="mainHeader3Link">' + ACCESS_EVENTS + '</a>';
    				++i;
    			}			
    			if(AreasLink!=''){
    				if(i>0) s += ' | ';
    				s += '<a href="' + AreasLink + '" class="mainHeader3Link">' + AREAS + '</a>';	
    				++i;			
    			}
    			
    			if(i>0) s += ' | ';
    			
    			var URL;
    			URL = window.top.NewReportPage + '?user=' + window.top.getCookie('USERNAME') + '&VD=' + window.top.VirDirName + '&Protocol=' + window.location.protocol ;
    		    s += '<a href="javascript:window.top.OpenEditor(\'' + URL + '\', 0, 0, ' + '\'' + NEW_REPORT + '\');" class="mainHeader3Link">' + NEW_REPORT + '</a>';
    
    			SubMenuHTML = s;			
    			strClass='172,155';
    			break;
    		case SCHEDULES:
    			strClass='6,17';  //6=calendar, 17=schedule
    			SubMenuHTML=s;
    			break;
    		case EVENT_VIEWS:
    			strClass='164';
    			break;
    		case GROUPS:
    			strClass='11';
    			break;
    		case PERSONNEL:
    			strClass='137';
    			s = '<a href="javascript:window.top.OnNewPersonnelObject()" class="mainHeader3Link">' + NEW_PERSON + '</a>';
    			s += ' | <a href="javascript:window.top.DoAdvancedPersonnelSearch(true)" class="mainHeader3Link">' + ADVANCED_SEARCH + '</a>';
    			SubMenuHTML=s;
    			break;
    		case POINTS:			
    			strClass = window.top.getCookie("PointsFilter");
    			if(!strClass)
    				strClass = '0,1,2,3,4,5,13,14,19,257,259,260,261,263';			
    			s = '<a href="javascript:TogglePointsDiv()" class="mainHeader3Link">' + POINT_TYPES + '</a>';
    			SubMenuHTML=s;
    			break;
    		case USER:
    			strClass='141';
    			s = '<a href="javascript:window.top.OnNewUser()" class="mainHeader3Link">' + "New User" + '</a>';
    			SubMenuHTML=s;
    			break;			
    		case VIDEO:
    			strClass='171';
    			break;
    		case CX_WEBS:
    			strClass='241';
    			break;
    		case ALL_OBJECTS:
    			strClass = '';
    			break;
    		case DOORS:
    			strClass='266';
    			break;
    		case LOOPS:
    			strClass='12';
    			break;
    		case TRENDLOGS:
    			strClass='20';
    			break;
    		default:
    	}
    	
    	if(sFilter != POINTS)
    		document.getElementById("PointsDiv").style.display = 'none';
    		
    	winMain.setCookie("ClassFilter", strClass)
    	winMain.setCookie("FilterType", sFilter)
    	
    	//we need to tell the app to show the home page and not the 
    	//infinity controller's contents if it's a CXWeb filter
    		
    	if(!bExploreMode){ //search mode
    		var strQSParam = '';
    		if (sFilter == CX_WEBS) 
    			strQSParam = '?CXWebs=true&';
    		else
    			strQSParam = '?';
    					
    		ExploreNav(winMain.SearchPage + strQSParam + 'Filter=' + strClass + '&INC=Search&Type=QP&SearchPathID=' + window.top.getCookie("SearchFolderID"));
    		winMain.bShowingContentWindow=false;
    	}else{ // explore mode
    		var sPage;
    		var sFolderNetworkBacnetAll;
    		var url='<a class="mainHeader3Link" onclick="bAllView=true;bNetworkView=false;bFolderView=false;window.top.setCookie(\'BrowseType\', \'All\');" href="javascript:winMain.NavExplorePanes()">';
    		url += ALL_PATHS + '</a>&nbsp;&nbsp;';
    		url += '<a class="mainHeader3Link" onclick="bFolderView=true;bAllView=false;bNetworkView=false;window.top.setCookie(\'BrowseType\', \'Folder\');" href="javascript:winMain.NavExplorePanes()">';
    		url += FOLDER_VIEW + '</a>&nbsp;&nbsp;';
    		url += '<a class="mainHeader3Link" onclick="bNetworkView=true;bFolderView=false;bAllView=false;window.top.setCookie(\'BrowseType\', \'Network\');" href="javascript:winMain.NavExplorePanes()">';
    		url += NETWORK_VIEW + '</a>';
    			
    		if(SubMenuHTML) SubMenuHTML = '<hr>' + SubMenuHTML;
    		SubMenuHTML = url + SubMenuHTML;
    		
    		if(bNetworkView){
    			sPage=winMain.NetworkBrowsePage;
    			sFolderNetworkBacnetAll = "Network";
    		}
    		
    		if(bFolderView){
    			sPage=winMain.FolderBrowsePage;
    			sFolderNetworkBacnetAll = "Folder";
    		}
    		
    		if(bAllView){
    			sPage=winMain.AllPathBrowsePage;
    			sFolderNetworkBacnetAll = "All"
    		}
    		
    		document.frames["exploreIFrame"].location.href = "ExploreFrameset.htm";
    		winMain.bShowingContentWindow=false;
    		
    		if (sFilter == CX_WEBS) 
    			strQSParam = '?CXWebs=true&';
    		else
    			strQSParam = '?';
    		
    		var strQSParam = strQSParam + 'Filter=' + strClass;
    		
    		
    		
    		var idHi = window.top.getCookie("BrowseIdHi");
    		var idLo = window.top.getCookie("BrowseIdLo");
    		
    		if(idHi=='')
    			idHi = '0';
    		if(idLo=='')
    			idLo = '0';
    		
    		if(sFolderNetworkBacnetAll=="")
    			sFolderNetworkBacnetAll = getCookie("BrowseType");
    		
    		if(sFolderNetworkBacnetAll=="")
    			sFolderNetworkBacnetAll = "All";							
    	}
    	
    	SetSubMenu(SubMenuHTML);
    	sFilterType = sFilter;
    	document.getElementById("MainMenu").innerHTML = sFilter;
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function ToggleContents(){
    	var bShow = window.top.bShowingContentWindow;
    	window.top.HideWindow(bShow, "content");
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function ShowMenu(bShow){
    
    	bShowingMenu = bShow;
    	
    	if(bShow==true){
    		document.getElementById("MenuArrow").src = imgArrowUp.src;		
    		if(bExploreMode==false)
    			winMain.frames['leftpane'].frames['exploreIFrame'].document.getElementById('SearchComboDiv').style.display='none';
    		popOver(0,1,true);		
    	}
    	else {
    		popOut(0,1);
    		document.getElementById("MenuArrow").src = imgArrowDown.src;
    		if(bExploreMode==false)
    			winMain.frames['leftpane'].frames['exploreIFrame'].document.getElementById('SearchComboDiv').style.display='';
    	}		
    }
    
    function ToggleMenu(){		
    		ShowMenu(!bShowingMenu);		
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function ToggleView(DivName){
    	if(document.getElementById(DivName).style.display=='none')
    		document.getElementById(DivName).style.display=''
    	else
    		document.getElementById(DivName).style.display='none'
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function SetSubMenu(sHTML){	
    	document.getElementById("ExploreSubMenu").innerHTML = sHTML;	
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function DoSearch(){	
    	if(bShowingMenu) ShowMenu(false)
    	if(bExploreMode==true || fExplore==false){		
    		bExploreMode = false;
    		SetFilter(sFilterType);
    		document.getElementById("PointsRefresh").style.display = 'none';
    	}
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function DoExplore(){
    	
    	if(bShowingMenu) ShowMenu(false)
    	if(bExploreMode==false){			
    		bExploreMode = true;		
    	}
    	SetFilter(sFilterType);
    	document.getElementById("PointsRefresh").style.display = '';
    
    	// Pristine	- 02/12/2008 - Muthuraja I - Lines added for defect #18993 ('Wrong Explore and Search .gif files displayed after clicking Parent Path in Search pane)
    	//-------------------------Start---------------------------
    	var imgExploreOn = new Image();
            imgExploreOn.src = "images/browse_on.gif";
    
        var imgSearchOff = new Image();
        imgSearchOff.src = "images/search.gif";
        
        parent.frames['topmenu'].document.getElementById("searchImage").src = imgSearchOff.src;
        parent.frames['topmenu'].document.getElementById("exploreImage").src = imgExploreOn.src;		
        //-------------------------End------------------------------
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    function ExploreNav( href ){
    	
    	document.frames["exploreIFrame"].document.body.style.cursor = "wait";
    	document.frames["exploreIFrame"].location.href = href;
    }
    
    ///////////////////////////////////////////////////////////////////////
    
    	var menu = new Array();
    	//var defOver = '#9DA4AA', defBack = '#9DA4AA';//
    	var defOver = '#558CBE', defBack = '#78a0c8';//
    	var defLength = 30;
    	menu[0] = new Array();
    	menu[0][0] = new Menu(true, '', 0, 0, 200, '', '', '', 'headerText');
    	menu[0][1] = new Item('', '#', '5', 26, 0, 1);
        menu[1] = new Array();
        menu[1][0] = new Menu(true, '', 0, 17, 260, defOver, defBack, 'itemBorder', 'itemText');
    	//Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass)
    	<%=Session["MENU"]%>
    
    			</SCRIPT>
    	</HEAD>
    	<BODY leftmargin="0" topmargin="0" rightmargin="0" onload="doLoad()" vlink="#d7e6f0" alink="#ffffff"
    		class="mainHeader3">
    		<table class="mainHeader3" id="exploreTable" border="0" cellpadding="3" cellspacing="0"
    			height="100%" width="100%">
    			<tr>
    				<td id="exploreMenuTD" valign="middle" height="30" class="mainHeader2" nowrap>&nbsp;<span id="MainMenu" class="itemText"></span></td>
    				<td valign="middle" align="right" height="30" class="mainHeader2" nowrap><a href="javascript:ToggleMenu()"><IMG src="images/Arrow_Down.gif" id="MenuArrow" align="absMiddle" border="0"></a>&nbsp;&nbsp;</td>
    			</tr>
    			<tr>
    				<td id="exploreSubmenuTD" height="1" class="mainHeader3" colspan="2" align="center"
    					valign="middle"><span id="ExploreSubMenu"></span><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="Scripts/PointSelection.js"></SCRIPT><img src="images/1x1.gif"></td>
    			</tr>
    			<tr>
    				<td id="" colspan="2" class="mainHeader3" nowrap>
    					<iframe id="exploreIFrame" name="exploreIFrame" src="about:blank" height="100%"
    						style="WIDTH: 100%" frameborder="0" scrolling="yes"></iframe>
    				</td>
    			</tr>
    		</table>
    	</BODY>
    </HTML>
    

    I'm

    • Changed type Cloud_TS Sunday, September 8, 2013 1:47 PM redirection
    Monday, August 19, 2013 2:27 PM

All replies

  • Hi,

    Thank you for posting here.

    Considering that the issue should be related to asp.net, I suggest to post the question on ASP.NET forum for further help.

    ASP.NET forum:

    http://forums.asp.net/

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

    Regards,


    Kelvin_Hsu

    TechNet Community Support

    Friday, August 23, 2013 2:54 AM