menu not displayed on IE but works fine on mozilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shinysk21
    New Member
    • Dec 2009
    • 6

    menu not displayed on IE but works fine on mozilla

    The menus of addmenu() works fine on Mozilla but not on IE. What could be the problem? I am trying on this for a ling time..

    Code:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%--<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <asp:ContentPlaceHolder id="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
            
            </asp:ContentPlaceHolder>
        </div>
        </form>
    </body>
    </html>--%>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <%--<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Welcome to health mantra</title>
        <link href="css/style.css" rel="Stylesheet" type="text/css" />
        </head>--%>
        <head id="Head1" runat="server">
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
            <title>HomePage</title>
            <link href="css/style.css" rel="Stylesheet" type="text/css" />
            <link href="css/Menu.css" rel="Stylesheet" type="text/css" />
    
            <script type="text/javascript">
                    if (!window.qmad){qmad=new Object();qmad.binit="";qmad.bvis="";qmad.bhide="";}
            </script>
    
                <script language="JavaScript">    
                    function mmLoadMenus() 
                    {
                          if (window.mm_menu_0310192556_0) return;
                          window.mm_menu_0310192556_0 = new Menu("root",180,21,"Verdana, Arial, Helvetica, sans-serif",11,"#000000","#FFFC00","#FA2E2E","#FA2E2E","left","middle",5,0,250,-5,7,true,true,true,0,false,false);
                           mm_menu_0310192556_0.addMenuItem("User Master","window.open('UserMasterView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Food Master","window.open('FoodMasterView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Meal Session Master","window.open('MealSessionView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Daily Plan Master","window.open('DailyfoodPlan.aspx', '_parent');");
    //                      mm_menu_0310192556_0.addMenuItem("Daily Plan Entry Master","window.open('DailyPlanEntryMaster.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Weekly Plan Master","window.open('WeeklyPlanMaster.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Weight Loss Plan Master","window.open('WeightLossPlanMaster.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Disease Master","window.open('DiseaseMaster.aspx', '_parent');");
    //                      mm_menu_0310192556_0.addMenuItem("Diet Type Master","window.open('DietTypeMaster.aspx', '_parent');");
    //                      mm_menu_0310192556_0.addMenuItem("Module Master","window.open('ModuleMasterView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Competition Master","window.open('#', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("City Master","window.open('CityMaster.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Country Master","window.open('CountryMaster.aspx', '_parent');");
    //                      mm_menu_0310192556_0.addMenuItem("Disease Diet Master","window.open('DiseaseDietView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("State Master","window.open('StateMaster.aspx', '_parent');");
    //                      mm_menu_0310192556_0.addMenuItem("Plan Master","window.open('PlanMaster.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Price Master","window.open('PriceMasterView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("CBT Diary","window.open('CBTDiaryAdminView.aspx', '_parent');");
                           mm_menu_0310192556_0.addMenuItem("CBT Question & Answer","window.open('QuestionAnswerDiaryAdminView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("My Profile","window.open('UserInfoView.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Question & Answer","window.open('QuestionAnswerTransactionViewAdmin.aspx', '_parent');");
                          mm_menu_0310192556_0.addMenuItem("Account Information","window.open('AccountInfo.aspx', '_parent');");
                          mm_menu_0310192556_0.fontWeight="bold";
                          mm_menu_0310192556_0.hideOnMouseOut=true;
                          mm_menu_0310192556_0.bgColor='#FF0000';
                          mm_menu_0310192556_0.menuBorder=1;
                          mm_menu_0310192556_0.menuLiteBgColor='#FF0000';
                          mm_menu_0310192556_0.menuBorderBgColor='#FF0000';                  
                          mm_menu_0310192556_0.writeMenus();
                    } // mmLoadMenus()            
                </script>
    
            <%--===================--%>
    
            <script type="text/javascript">
                debugger;
    		    /*******  Menu 0 Add-On Settings *******/
    		    var a = qmad.qm0 = new Object();
    
    		    // Item Bullets Add On
    		    a.ibullets_apply_to = "parent";
    //		    a.ibullets_main_image = "../images/symbol_0.gif";
    //		    a.ibullets_main_image_hover = "http://bytes.com/images/symbol_1.gif";
    //		    a.ibullets_main_image_active = "http://bytes.com/images/symbol_2.gif";
    		    a.ibullets_main_image_width = 13;
    		    a.ibullets_main_image_height = 13;
    		    a.ibullets_main_position_x = -15;
    		    a.ibullets_main_position_y = -6;
    		    a.ibullets_main_align_x = "right";
    		    a.ibullets_main_align_y = "middle";
    //		    a.ibullets_sub_image = "http://bytes.com/images/symbol_3.gif";
    //		    a.ibullets_sub_image_hover = "http://bytes.com/images/symbol_4.gif";
    //		    a.ibullets_sub_image_active = "http://bytes.com/images/symbol_5.gif";
    		    a.ibullets_sub_image_width = 5;
    		    a.ibullets_sub_image_height = 5;
    		    a.ibullets_sub_position_x = -10;
    		    a.ibullets_sub_position_y = -3;
    		    a.ibullets_sub_align_x = "left";
    		    a.ibullets_sub_align_y = "middle";
    
    		    // Tree Menu Add On
    		    a.tree_enabled = true;
    		    a.tree_auto_collapse = "sync";
    		    a.tree_sub_sub_indent = 15;
    		    a.tree_hide_focus_box = true;
    		    a.tree_expand_animation = 2;
    		    a.tree_expand_step_size = 2;
    		    a.tree_collapse_animation = 2;
    		    a.tree_collapse_step_size = 2;
            </script>
    etc etc
    Last edited by jhardman; Apr 23 '10, 06:42 PM. Reason: added code tags
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    1- You accidentally posted in the ASP classic forum, but it appears this is a ASP.NET question. I'll move it to the ASP.NET forum for you.

    2- You NEED to put your code in code tags (hightlight the code and click the # button)

    3- Whenever you get different responses from different browsers, your first action should be to validate the markup. Try validator.w3.or g

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      This is not an ASP.NET question.
      This is a JavaScript question.
      I have moved your question to the JavaScript forum where you will get more help on the topic.

      The first thing that I recommend is that you install Internet Explorer 8 and use the debugging tool that comes with that browser. You can open the debugging tool by hitting F12

      If there is no problem in IE8 then I'm not sure what to suggest.

      Hopefully the JavaScript experts can help you further based on what you've provided.

      Good luck

      -Frinny

      Comment

      • shinysk21
        New Member
        • Dec 2009
        • 6

        #4
        I solved it...
        Just added &nbsp; as follows

        mm_menu_0310192 556_0.addMenuIt em("User&nbsp;M aster&nbsp;","w indow.open('Use rMasterView.asp x', '_parent');");

        Comment

        Working...