Always showing javascript error

Page 1 of 2 12 LastLast
  1. #1

    Always showing javascript error

    Hi

    Whenever I am log in to the application one JavaScript error is showing.. please find the attachment. My application is MVC Pattern.. and i followed ext.net mvc application sample.. i developed similarly.. i can't figure it out the error..

    Below mentioned pages i used. if any more detailed need means kindly let me know..

    site.js

    
    Ext.ns("Northwind");
    
    Northwind = {
        //Prevent Back space
        preventBackspace: function () {
            if (event.keyCode == 8 || event.keyCode == 13) {
                return false;
            }
        },
        disableBackButton: function () {
            window.history.forward();
        },
        hashCode: function (str) {
            var hash = 1315423911;
    
            for (var i = 0; i < str.length; i++) {
                hash ^= ((hash << 5) + str.charCodeAt(i) + (hash >> 2));
            }
    
            return (hash & 0x7FFFFFFF);
        },
    
        addTab: function (config) {
            if (Ext.isEmpty(config.url, false)) {
                return;
            }
    
            var tp = Ext.getCmp('tpMain');
            var id = this.hashCode(config.url);
            var tab = tp.getComponent(id);
    
            if (!tab) {
                tab = tp.addTab({
                    id: id.toString(),
                    title: config.title,
                    iconCls: config.icon || 'icon-applicationdouble',
                    closable: true,
                    autoLoad: {
                        showMask: true,
                        url: config.url,
                        mode: 'iframe',
                        noCache: true,
                        maskMsg: "Loading '" + config.title + "'...",
                        scripts: true,
                        passParentSize: config.passParentSize
                    }
                });
            } else {
                tp.setActiveTab(tab);
                Ext.get(tab.tabEl).frame();
            }
        }
    
    };
    site.master

    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <%@ Register Src="~/Views/Shared/MenuControls/Menu.ascx" TagName="WestMenu" TagPrefix="uc1" %>
    <%@ Register Src="~/Views/Shared/HelpControls/HelpWindow.ascx" TagName="HelpWindow"
        TagPrefix="uc2" %>
    <%@ Register Src="~/Views/Shared/UserControls/ErrorPage.ascx" TagName="errorwindow"
        TagPrefix="ucErrorwindow" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>ATRT (Analytical Test Request Tracker V2.0)</title>
        <script type="text/javascript">
            var doInit = function () {
                var dbDateOfAnalysis = txtOldBatch.getValue();
                if (dbDateOfAnalysis != '') {
                    alert('User account will expire in ' + dbDateOfAnalysis + ' day(s). Kindly contact system administrator');
                }
            }
            function disableBackButton() {
                window.history.forward();
            }
            var preventBackspace = function () {
                if (event.keyCode == 8 || event.keyCode == 13) {
                    return false;
                }
            }
            var linkRendererhelp = function () {
                winopenhelp();
            };
            var newwinhelp;
            function winopenhelp() {
                var targeturl = "../../ATRTHELP/ATRTHelpFrameset.html";
                newwinhelp = window.open("", "", "scrollbars=yes,status=yes");
    
                if (document.all) {
                    newwinhelp.moveTo(0, 0);
                    newwinhelp.resizeTo(screen.width, screen.height);
                }
    
                newwinhelp.location = targeturl;
            }
            var specialKeyHandler = function (field, e) {
                if (e.getKey() == e.ENTER) {
                    document.getElementById('btnLogin').click();
                }
                else if (e.getKey() == e.ESC) {
                    //alert("ESC Key was pressed");
                }
            }
            function logoutFuncion() {
                var result = confirm('Are you sure want to logout?')
                if (result) {
                    document.getElementById('btnAlternateLogut').click();
                }
            }
            window.onbeforeunload = confirmExit;
            function confirmExit() {
                if (window.event.clientY < 0 && window.event.clientY < -80) {
                    var xmlhttp;
                    if (window.ActiveXObject) {
                        // code for IE6, IE5
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                        xmlhttp.open("GET", "/Account/Logout/", false);
                        xmlhttp.send();
                    }
                    if (window.XMLHttpRequest) {
                        // code for IE7+
                        xmlhttp = new XMLHttpRequest();
                        xmlhttp.open("GET", "/Account/Logout/", false);
                        xmlhttp.send();
                    }
                }
            }  
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link rel="stylesheet" type="text/css" href="/resources/css/ui.css" />
        <ext:ResourcePlaceHolder runat="server" />
        <script type="text/javascript" src="/resources/js/site.js"></script>
        <script type="text/javascript" src="/resources/js/mastermenu.js"></script>
    </head>
    <body onload="disableBackButton();">
        <ucErrorwindow:errorwindow ID="errorwindowcall" runat="server" />
        <ext:ResourceManager ID="ScriptManager1" runat="server" IDMode="Explicit">
            <Listeners>
                <DocumentReady Handler="
                doInit();
                var resultads = #{isADSUser}.getValue();
                if(resultads == '1')  
                {
                    #{mnuChangepassword}.hide();	
                }
                else
                {
                    #{mnuChangepassword}.show();	
                }
                " />
            </Listeners>
        </ext:ResourceManager>
        <ext:Viewport ID="ViewPort1" runat="server" Layout="border">
            <Items>
                <ext:Toolbar ID="tbHeader" runat="server" Height="25" Region="North" Margins="0 0 4 0">
                    <Items>
                        <ext:Button ID="lblTitle" runat="server" Text="<b>Analytical Test Request Tracker V2.0</b>"
                            Icon="Shield">
                            <Listeners>
                                <Click Handler="#{winAbout}.show();" />
                            </Listeners>
                        </ext:Button>
                        <ext:ToolbarFill ID="fill1" runat="server" />
                        <ext:DisplayField ID="isADSUser" runat="server" Hidden="true" Text='<%# this.ViewData["IsADSUser"] %>'
                            AutoDataBind="true">
                        </ext:DisplayField>
                        <ext:DisplayField ID="txtOldBatch" runat="server" Hidden="true" Text='<%# this.ViewData["AccountExpiryDays"] %>'
                            AutoDataBind="true">
                        </ext:DisplayField>
                        <ext:Label ID="Label1" runat="server" Html='<%# this.ViewData["Username"] %>' AutoDataBind="true"
                            Icon="StatusOnline">
                        </ext:Label>
                        <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
                        <ext:Button ID="mnuChangepassword" runat="server" Icon="Wrench" Text="Change Password"
                            Hidden="true">
                            <Listeners>
                                <Click Handler="#{winchangepassword}.show();" />
                            </Listeners>
                        </ext:Button>
                        <ext:Button ID="btnHelp" runat="server" Icon="Help" Text="Help">
                            <Listeners>
                                <Click Fn="linkRendererhelp" />
                            </Listeners>
                        </ext:Button>
                        <ext:Button ID="btnLogout" runat="server" Icon="LockGo" Text="Logout">
                            <Listeners>
                                <Click Fn="logoutFuncion" />
                            </Listeners>
                        </ext:Button>
                        <ext:Button ID="btnAlternateLogut" runat="server" Icon="LockGo" Text="Logout" Hidden="true">
                            <DirectEvents>
                                <Click Url="/Account/Logout/">
                                    <EventMask ShowMask="true" Msg="Logout.." MinDelay="1000" />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:Panel ID="Panel1" runat="server" Title="Navigator" Region="West" Split="true"
                    Collapsible="true" CollapseMode="Mini" Width="185">
                    <Content>
                        <uc1:WestMenu ID="WestMenu1" runat="server" />
                    </Content>
                </ext:Panel>
                <ext:TabPanel ID="tpMain" runat="server" EnableTabScroll="true" DeferredRender="true"
                    Region="Center">
                    <Items>
                        <ext:Panel ID="Tab1" runat="server" Title="Home" Icon="Information" Border="false">
                            <AutoLoad Url="/Dashboard/Home/" Mode="IFrame" NoCache="true" Scripts="true" ShowMask="true"
                                MaskMsg="Loading 'Home'...">
                            </AutoLoad>
                        </ext:Panel>
                    </Items>
                    <Plugins>
                        <ext:TabCloseMenu ID="TabCloseMenu1" runat="server" />
                    </Plugins>
                </ext:TabPanel>
            </Items>
        </ext:Viewport>
        <uc2:HelpWindow ID="HelpWindow1" runat="server" />
        <ext:Window ID="winchangepassword" runat="server" Icon="Wrench" Plain="true" Title="Change Password"
            Padding="5" Resizable="false" Width="375" Height="150" Hidden="true" Modal="true"
            Closable="true" BodyBorder="false">
            <Items>
                <ext:FormPanel ID="FormPanel1" runat="server" FormID="form1" Border="false" Layout="form"
                    BodyBorder="false" BodyStyle="background:transparent;">
                    <Items>
                        <ext:TextField ID="CURRENTPASSWORD" Name="txtCurrentPassword" runat="server" FieldLabel="Current Password"
                            AnchorHorizontal="95%" Disabled="false" MsgTarget="Side" MaxLength="100" InputType="Password"
                            BlankText="Current password should not be blank">
                            <CustomConfig>
                                <ext:ConfigItem Name="enterIsSpecial" Value="true" />
                            </CustomConfig>
                            <Listeners>
                                <SpecialKey Fn="specialKeyHandler" />
                            </Listeners>
                        </ext:TextField>
                        <ext:TextField ID="NEWPASSWORD" Name="txtNewPassword" runat="server" FieldLabel="New Password"
                            AnchorHorizontal="95%" MsgTarget="Side" MaxLength="100" InputType="Password"
                            BlankText="New password should not be blank">
                            <CustomConfig>
                                <ext:ConfigItem Name="enterIsSpecial" Value="true" />
                            </CustomConfig>
                            <Listeners>
                                <SpecialKey Fn="specialKeyHandler" />
                            </Listeners>
                        </ext:TextField>
                        <ext:TextField ID="CONFIRMPASSWWORD" Name="txtConfirmPassword" runat="server" FieldLabel="Confirm Password"
                            AnchorHorizontal="95%" MsgTarget="Side" MaxLength="100" Vtype="password" InputType="Password"
                            BlankText="Confirm password should not be blank">
                            <CustomConfig>
                                <ext:ConfigItem Name="initialPassField" Value="#{NEWPASSWORD}" Mode="Value" />
                                <ext:ConfigItem Name="enterIsSpecial" Value="true" />
                            </CustomConfig>
                            <Listeners>
                                <SpecialKey Fn="specialKeyHandler" />
                            </Listeners>
                        </ext:TextField>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button runat="server" Text="Save" Icon="Add" ID="btnLogin" ToolTip="Save">
                    <DirectEvents>
                        <Click Url="/Administration/ChangePasswordLogin/" CleanRequest="true" Method="POST"
                            Failure="
                                var msg = result.errorMessage;
                                if (msg == 'EXEFL')
                                {
                                    var win = winError; 
                                    win.show();
                                }
                                else
                                {
                                     alert(result.errorMessage);
                                     CURRENTPASSWORD.setValue('');
                                     NEWPASSWORD.setValue(''); 
                                     CONFIRMPASSWWORD.setValue(''); 
                                 }
                                 " Success="alert('Password updated successfully!');#{winchangepassword}.hide();">
                            <EventMask Msg="Loading..." ShowMask="true" />
                            <ExtraParams>
                                <ext:Parameter Name="CURRENTPASSWORD" Value="#{CURRENTPASSWORD}.getValue()" Mode="Raw" />
                                <ext:Parameter Name="NEWPASSWORD" Value="#{NEWPASSWORD}.getValue()" Mode="Raw" />
                                <ext:Parameter Name="CONFIRMPASSWWORD" Value="#{CONFIRMPASSWWORD}.getValue()" Mode="Raw" />
                                <ext:Parameter Name="changetype" Value="2" Mode="Value" />
                            </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="Button1" runat="server" Icon="LockGo" Text="Logout">
                    <Listeners>
                        <Click Fn="logoutFuncion" />
                    </Listeners>
                </ext:Button>
                <ext:Button ID="Button2" runat="server" Icon="LockGo" Text="Logout" Hidden="true">
                    <DirectEvents>
                        <Click Url="/Account/Logout/">
                            <EventMask ShowMask="true" Msg="Logout.." MinDelay="1000" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button runat="server" ID="Button8" Text="Cancel" Icon="BulletCross">
                    <Listeners>
                        <Click Handler="var result = confirm('Do you want to close the window ?');if (result) {#{winchangepassword}.hide();}" />
                    </Listeners>
                </ext:Button>
            </Buttons>
            <Listeners>
                <Hide Handler="CURRENTPASSWORD.setValue('');
                                 NEWPASSWORD.setValue(''); 
                                 CONFIRMPASSWWORD.setValue('');" />
            </Listeners>
        </ext:Window>
    </body>
    </html>

    Menu.ascx

    <%@ Control Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1">
        <link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            var underconst = function () {
                alert('Under Construction. Sorry for the inconvenience');
            }
            // COA
            var linkRenderer = function () {
                winopen();
            };
            var newwin;
            function winopen() {
                var targeturl = "../../../Products.aspx";
                newwin = window.open("", "", "scrollbars=yes,status=yes");
    
                if (document.all) {
                    newwin.moveTo(0, 0);
                    newwin.resizeTo(screen.width, screen.height);
                }
                newwin.location = targeturl;
            }                            
        </script>
        <script runat="server">    
            protected void Page_Load(object sender, EventArgs e)
            {
                string strValues = this.ViewData["id"].ToString();
                string[] seperateGroupValues = strValues.Trim().Split(',');
                string strmenupermissionvalue = this.ViewData["menupermission"].ToString();
                string[] strmenupermission = strmenupermissionvalue.Trim().Split(',');
    
                // Menu Permissions
                foreach (string item in strmenupermission)
                {
                    // My Messages
                    foreach (var items in this.acCustomers.LazyItems)
                    {
                        foreach (var itemclsc in items.LazyItems)
                        {
                            if (item.Equals(itemclsc.ID.ToString()))
                            {
                                itemclsc.Visible = true;
                            }
                        }
                    }
                    // Reports
                    foreach (var items in this.wmPanel2.LazyItems)
                    {
                        foreach (var itemclsc in items.LazyItems)
                        {
                            if (item.Equals(itemclsc.ID.ToString()))
                            {
                                itemclsc.Visible = true;
                            }
                        }
                    }
                    // Masters
                    foreach (var items in this.wmMasters.LazyItems)
                    {
                        foreach (var itemclsc in items.LazyItems)
                        {
                            if (item.Equals(itemclsc.ID.ToString()))
                            {
                                itemclsc.Visible = true;
                            }
                        }
                    }
                    // Administration
                    foreach (var items in this.wmAdministration.LazyItems)
                    {
                        foreach (var itemclsc in items.LazyItems)
                        {
                            if (item.Equals(itemclsc.ID.ToString()))
                            {
                                itemclsc.Visible = true;
                            }
                        }
                    }
                }
    
                // Role permissions
                foreach (string row in seperateGroupValues)
                {
                    // Administrator
                    if (Convert.ToInt32(row) == 1)
                    {
                        this.mnucompositecoa.Hidden = false;
                        this.mnuDraft.Hidden = false;
                        break;
                    }
                    // PDR Scientist
                    if (Convert.ToInt32(row) == 5 || Convert.ToInt32(row) == 2 || Convert.ToInt32(row) == 10 || Convert.ToInt32(row) == 12)
                    {
                        this.mnuDraft.Hidden = false;
                    }
                    // AR Approver
                    if (Convert.ToInt32(row) == 9)
                    {
                        this.mnucompositecoa.Hidden = false;
                    }
                    // AR Scientist
                    if (Convert.ToInt32(row) == 8)
                    {
                        this.mnucompositecoa.Hidden = false;
                        this.mnuDraft.Hidden = false;
                    }
                }
            }
        </script>
    </head>
    <body>
        <ext:AccordionLayout ID="AccordionLayout1" runat="server" Animate="false">
            <Items>
                <ext:MenuPanel ID="acReports" runat="server" Collapsed="true" Title="Test Type" Border="false"
                    SaveSelection="false" Cls="white-menu">
                    <Menu ID="Menu1" runat="server">
                        <Items>
                            <ext:MenuItem ID="mnudashboard" runat="server" Text="Dashboard" Icon="Shield">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Dashboard/Dashboard/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuCompleted" runat="server" Text="Completed" Icon="Shield">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/TRStatus/TestStatus/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="On-hold" Icon="Shield" ID="mnuTROnhold">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/TRStatus/TROnhold/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Cancelled" Icon="Shield" ID="mnuCancelled">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/TRStatus/TRCancelled/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnucompositecoa" runat="server" Text="Composite COA" Icon="Shield"
                                Hidden="true">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/TRStatus/TRCompositeCOA/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuDraft" runat="server" Text="Draft" Icon="Shield" Hidden="true">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/TRStatus/TRDraft/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                        </Items>
                        <Listeners>
                            <ItemClick Handler="Northwind.addTab({ title: menuItem.text, url: menuItem.url, icon: menuItem.iconCls, passParentSize: menuItem.passParentSize});" />
                        </Listeners>
                    </Menu>
                </ext:MenuPanel>
                <ext:MenuPanel ID="acCustomers" runat="server" Collapsed="true" Title="Messages"
                    Border="false" SaveSelection="false" Cls="white-menu">
                    <Menu ID="Menu2" runat="server">
                        <Items>
                            <ext:MenuItem runat="server" Text="My Messages" Icon="mail" ID="mnumymessages" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Messages/MyMessages/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuCustomNotification" runat="server" Text="Custom Notification"
                                Visible="false" Icon="EmailGo">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/CustomNotifications/Notifications/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                        </Items>
                        <Listeners>
                            <ItemClick Handler="Northwind.addTab({ title: menuItem.text, url: menuItem.url, icon: menuItem.iconCls });" />
                        </Listeners>
                    </Menu>
                </ext:MenuPanel>
                <ext:MenuPanel ID="wmPanel2" runat="server" Collapsed="true" Title="Reports" Border="false"
                    AutoScroll="true" SaveSelection="false" Cls="white-menu">
                    <Menu ID="Menu3" runat="server">
                        <Items>
                            <ext:MenuItem ID="mnuUserActivityReport" runat="server" Text="User Activity Report"
                                Icon="Report" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/AuditLoginReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="MIS" Icon="Report" ID="mnuMIS" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/MISReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuSummaryReport" runat="server" Text="Summary Report" Icon="Report"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/SummaryReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuAnalystSample" runat="server" Text="Analyst Sample" Icon="Report"
                                Visible="false">
                                <Listeners>
                                    <Click Fn="linkRenderer" />
                                </Listeners>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuTestRequestReport" runat="server" Text="Test Request Report"
                                Visible="false" Icon="Report">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/PDRDepartmentReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuAnalysisReport" runat="server" Text="Analysis Report" Icon="Report"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/PDRManagementAnalysisReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuTestRequestReportAR" runat="server" Text="Test Request Report - AR"
                                Visible="false" Icon="Report">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/ARTestRequestReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuAuditReport" runat="server" Text="Audit Report" Icon="Report"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Reports/UserAuditReport/" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                        </Items>
                        <Listeners>
                            <ItemClick Handler="Northwind.addTab({ title: menuItem.text, url: menuItem.url, icon: menuItem.iconCls });" />
                        </Listeners>
                    </Menu>
                </ext:MenuPanel>
                <ext:MenuPanel ID="wmMasters" runat="server" Collapsed="true" Title="Masters" Border="false"
                    SaveSelection="false" Cls="white-menu">
                    <Menu ID="Menu4" runat="server">
                        <Items>
                            <ext:MenuItem ID="mnuStabilityConditions" runat="server" Text="Stability Conditions"
                                Visible="false" Icon="ApplicationAdd">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=16&&Name=mnuStabilityConditions"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuPeriods" runat="server" Text="Periods" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=12&&Name=mnuPeriods" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuCountryofLaunch" runat="server" Text="Country of Launch" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=19&&Name=mnuCountryofLaunch"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuPharmacopeias" runat="server" Text="Pharmacopeias" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=13&&Name=mnuPharmacopeias"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuTesttyperequested" runat="server" Text="Test type requested"
                                Visible="false" Icon="ApplicationAdd">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=17&&Name=mnuTesttyperequested"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuStage" runat="server" Text="Stage" Icon="ApplicationAdd" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=3&&Name=mnuStage" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuPackType" runat="server" Text="Pack Type" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=11&&Name=mnuPackType"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuUnitofStrength" runat="server" Text="Unit of Strength" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=18&&Name=mnuUnitofStrength"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Sample Status" Icon="ApplicationAdd" ID="mnuSampleStatus"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=14&&Name=mnuSampleStatus"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuCRDProjectName" runat="server" Text="CRD Project Name" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=6&&Name=mnuCRDProjectName"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Department" Icon="ApplicationAdd" ID="mnuDepartment"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=2&&Name=mnuDepartment"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Product Name" Icon="ApplicationAdd" ID="mnuProductName"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=20&&Name=mnuProductName"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Storage conditions" Icon="ApplicationAdd" ID="mnuStorageconditions"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=21&&Name=mnuStorageconditions"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Condition" Icon="ApplicationAdd" ID="mnuCondition"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=22&&Name=mnuCondition"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuAPISource" runat="server" Text="API Source" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=23&&Name=mnuAPISource"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuCRDProjectCode" runat="server" Text="CRD Project Code" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=24&&Name=mnuCRDProjectCode"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuARLab" runat="server" Text="AR Lab" Icon="ApplicationAdd" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=25&&Name=mnuARLab" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuBatchType" runat="server" Text="Batch Type" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=26&&Name=mnuBatchType"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem ID="mnuARLabTestType" runat="server" Text="AR Lab Test Type" Icon="ApplicationAdd"
                                Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Master/MasterDetail/?ID=27&&Name=mnuARLabTestType"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                        </Items>
                        <Listeners>
                            <ItemClick Handler="MasterTabmenu.addTab({ title: menuItem.text,url: menuItem.url, icon: menuItem.iconCls,id: menuItem.id});" />
                        </Listeners>
                    </Menu>
                </ext:MenuPanel>
                <ext:MenuPanel ID="wmAdministration" runat="server" Collapsed="true" Title="Administration"
                    Border="false" SaveSelection="false" Cls="white-menu">
                    <Menu ID="Menu5" runat="server">
                        <Items>
                            <ext:MenuItem runat="server" Text="Users" Icon="UserHome" ID="mnuUsers" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Administration/UsersDetail/?Name=mnuUsers" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Groups" Icon="Group" ID="mnuGroups" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Groups/GroupsDetails/?Name=mnuGroups" Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                            <ext:MenuItem runat="server" Text="Preferences" Icon="Key" ID="mnuPreferences" Visible="false">
                                <CustomConfig>
                                    <ext:ConfigItem Name="url" Value="/Administration/Preferences/?Name=mnuPreferences"
                                        Mode="Value" />
                                </CustomConfig>
                            </ext:MenuItem>
                        </Items>
                        <Listeners>
                            <ItemClick Handler="Northwind.addTab({ title: menuItem.text, url: menuItem.url, icon: menuItem.iconCls });" />
                        </Listeners>
                    </Menu>
                </ext:MenuPanel>
            </Items>
        </ext:AccordionLayout>
    </body>
    </html>
    Kindly help me to fix this issue..

    Thanks in advance
    Attached Thumbnails Click image for larger version. 

Name:	jaerror.JPG 
Views:	117 
Size:	24.7 KB 
ID:	2401  
    Last edited by vs.mukesh; Mar 09, 2011 at 9:17 AM.
  2. #2
    Hi,

    I can suggest you to use FireBug in FireFox browser to get more information about the error.

    Or you could debug it using Visual Studio.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    I can suggest you to use FireBug in FireFox browser to get more information about the error.

    Or you could debug it using Visual Studio.
    i tried in Firefox Version 3.6.15 it shows only some warnings .. it wont show any errors.

    and i am using visual studio 2010 in that also i cant able to debug this error..

    our application preferred browser is IE7 and greater versions only..

    if above mentioned info., is not clear means please let me know..

    Thanks in advance
  4. #4
    Hi,

    Please create a simplified test project and post. Please do not attach any dlls.
  5. #5
    Quote Originally Posted by Daniil View Post
    Hi,

    Please create a simplified test project and post. Please do not attach any dlls.
    Hi

    You can download my sample project from this location. kindly to the needful.

    http://www.esnips.com/web/ToExtNet

    Thanks in advance
  6. #6
    Hi,

    Thanks for the project. I follow the link and they ask me to install "eSnips Downloader" to download the file. I would like to avoid it.

    Could you attach the project here? Please do not attach any dlls
  7. #7
    Quote Originally Posted by Daniil View Post
    Hi,

    Thanks for the project. I follow the link and they ask me to install "eSnips Downloader" to download the file. I would like to avoid it.

    Could you attach the project here? Please do not attach any dlls
    Hi

    Thanks for the quick update.. my zip file size is 155kb. Here i am not able to upload more than 25 kb. that's why i choosed third party uploader.
    How can i upload my zip file in your forums? please do the needful.

    Thanks in advance
  8. #8
    Please clarify did you exclude all dlls?
  9. #9
    Quote Originally Posted by Daniil View Post
    Please clarify did you exclude all dlls?
    Hi

    I excluded all ext.net dll's. it is having only one application dll's. Without that dll you can't able to run my sample project.

    If above information is not clear means please let me know.

    Thanks in advance
  10. #10
    Please send on
    support@object.net
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: Sep 27, 2011, 1:41 PM
  2. [CLOSED] Problem when showing/hiding controls in javascript
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2010, 12:19 PM
  3. [CLOSED] Javascript error when showing window (bug?)
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 25, 2010, 6:40 PM
  4. Replies: 6
    Last Post: May 25, 2010, 9:53 AM
  5. Hosting server with iis 6.0 showing Error.
    By Sreejith in forum 1.x Help
    Replies: 3
    Last Post: Sep 29, 2009, 5:27 AM

Posting Permissions