473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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..

Expand|Select|Wrap|Line Numbers
  1. <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <%--<html xmlns="http://www.w3.org/1999/xhtml">
  5. <head runat="server">
  6.     <title>Untitled Page</title>
  7.     <asp:ContentPlaceHolder id="head" runat="server">
  8.     </asp:ContentPlaceHolder>
  9. </head>
  10. <body>
  11.     <form id="form1" runat="server">
  12.     <div>
  13.         <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
  14.  
  15.         </asp:ContentPlaceHolder>
  16.     </div>
  17.     </form>
  18. </body>
  19. </html>--%>
  20. <html xmlns="http://www.w3.org/1999/xhtml">
  21.     <%--<head>
  22.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  23.     <title>Welcome to health mantra</title>
  24.     <link href="css/style.css" rel="Stylesheet" type="text/css" />
  25.     </head>--%>
  26.     <head id="Head1" runat="server">
  27.         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  28.         <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  29.         <title>HomePage</title>
  30.         <link href="css/style.css" rel="Stylesheet" type="text/css" />
  31.         <link href="css/Menu.css" rel="Stylesheet" type="text/css" />
  32.  
  33.         <script type="text/javascript">
  34.                 if (!window.qmad){qmad=new Object();qmad.binit="";qmad.bvis="";qmad.bhide="";}
  35.         </script>
  36.  
  37.             <script language="JavaScript">    
  38.                 function mmLoadMenus() 
  39.                 {
  40.                       if (window.mm_menu_0310192556_0) return;
  41.                       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);
  42.                        mm_menu_0310192556_0.addMenuItem("User Master","window.open('UserMasterView.aspx', '_parent');");
  43.                       mm_menu_0310192556_0.addMenuItem("Food Master","window.open('FoodMasterView.aspx', '_parent');");
  44.                       mm_menu_0310192556_0.addMenuItem("Meal Session Master","window.open('MealSessionView.aspx', '_parent');");
  45.                       mm_menu_0310192556_0.addMenuItem("Daily Plan Master","window.open('DailyfoodPlan.aspx', '_parent');");
  46. //                      mm_menu_0310192556_0.addMenuItem("Daily Plan Entry Master","window.open('DailyPlanEntryMaster.aspx', '_parent');");
  47.                       mm_menu_0310192556_0.addMenuItem("Weekly Plan Master","window.open('WeeklyPlanMaster.aspx', '_parent');");
  48.                       mm_menu_0310192556_0.addMenuItem("Weight Loss Plan Master","window.open('WeightLossPlanMaster.aspx', '_parent');");
  49.                       mm_menu_0310192556_0.addMenuItem("Disease Master","window.open('DiseaseMaster.aspx', '_parent');");
  50. //                      mm_menu_0310192556_0.addMenuItem("Diet Type Master","window.open('DietTypeMaster.aspx', '_parent');");
  51. //                      mm_menu_0310192556_0.addMenuItem("Module Master","window.open('ModuleMasterView.aspx', '_parent');");
  52.                       mm_menu_0310192556_0.addMenuItem("Competition Master","window.open('#', '_parent');");
  53.                       mm_menu_0310192556_0.addMenuItem("City Master","window.open('CityMaster.aspx', '_parent');");
  54.                       mm_menu_0310192556_0.addMenuItem("Country Master","window.open('CountryMaster.aspx', '_parent');");
  55. //                      mm_menu_0310192556_0.addMenuItem("Disease Diet Master","window.open('DiseaseDietView.aspx', '_parent');");
  56.                       mm_menu_0310192556_0.addMenuItem("State Master","window.open('StateMaster.aspx', '_parent');");
  57. //                      mm_menu_0310192556_0.addMenuItem("Plan Master","window.open('PlanMaster.aspx', '_parent');");
  58.                       mm_menu_0310192556_0.addMenuItem("Price Master","window.open('PriceMasterView.aspx', '_parent');");
  59.                       mm_menu_0310192556_0.addMenuItem("CBT Diary","window.open('CBTDiaryAdminView.aspx', '_parent');");
  60.                        mm_menu_0310192556_0.addMenuItem("CBT Question & Answer","window.open('QuestionAnswerDiaryAdminView.aspx', '_parent');");
  61.                       mm_menu_0310192556_0.addMenuItem("My Profile","window.open('UserInfoView.aspx', '_parent');");
  62.                       mm_menu_0310192556_0.addMenuItem("Question & Answer","window.open('QuestionAnswerTransactionViewAdmin.aspx', '_parent');");
  63.                       mm_menu_0310192556_0.addMenuItem("Account Information","window.open('AccountInfo.aspx', '_parent');");
  64.                       mm_menu_0310192556_0.fontWeight="bold";
  65.                       mm_menu_0310192556_0.hideOnMouseOut=true;
  66.                       mm_menu_0310192556_0.bgColor='#FF0000';
  67.                       mm_menu_0310192556_0.menuBorder=1;
  68.                       mm_menu_0310192556_0.menuLiteBgColor='#FF0000';
  69.                       mm_menu_0310192556_0.menuBorderBgColor='#FF0000';                  
  70.                       mm_menu_0310192556_0.writeMenus();
  71.                 } // mmLoadMenus()            
  72.             </script>
  73.  
  74.         <%--===================--%>
  75.  
  76.         <script type="text/javascript">
  77.             debugger;
  78.             /*******  Menu 0 Add-On Settings *******/
  79.             var a = qmad.qm0 = new Object();
  80.  
  81.             // Item Bullets Add On
  82.             a.ibullets_apply_to = "parent";
  83. //            a.ibullets_main_image = "../images/symbol_0.gif";
  84. //            a.ibullets_main_image_hover = "http://bytes.com/images/symbol_1.gif";
  85. //            a.ibullets_main_image_active = "http://bytes.com/images/symbol_2.gif";
  86.             a.ibullets_main_image_width = 13;
  87.             a.ibullets_main_image_height = 13;
  88.             a.ibullets_main_position_x = -15;
  89.             a.ibullets_main_position_y = -6;
  90.             a.ibullets_main_align_x = "right";
  91.             a.ibullets_main_align_y = "middle";
  92. //            a.ibullets_sub_image = "http://bytes.com/images/symbol_3.gif";
  93. //            a.ibullets_sub_image_hover = "http://bytes.com/images/symbol_4.gif";
  94. //            a.ibullets_sub_image_active = "http://bytes.com/images/symbol_5.gif";
  95.             a.ibullets_sub_image_width = 5;
  96.             a.ibullets_sub_image_height = 5;
  97.             a.ibullets_sub_position_x = -10;
  98.             a.ibullets_sub_position_y = -3;
  99.             a.ibullets_sub_align_x = "left";
  100.             a.ibullets_sub_align_y = "middle";
  101.  
  102.             // Tree Menu Add On
  103.             a.tree_enabled = true;
  104.             a.tree_auto_collapse = "sync";
  105.             a.tree_sub_sub_indent = 15;
  106.             a.tree_hide_focus_box = true;
  107.             a.tree_expand_animation = 2;
  108.             a.tree_expand_step_size = 2;
  109.             a.tree_collapse_animation = 2;
  110.             a.tree_collapse_step_size = 2;
  111.         </script>
  112.  
etc etc
Apr 23 '10 #1
3 2418
jhardman
3,406 Expert 2GB
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.org
Apr 23 '10 #2
Frinavale
9,735 Expert Mod 8TB
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
Apr 23 '10 #3
I solved it...
Just added &nbsp; as follows

mm_menu_0310192556_0.addMenuItem("User&nbsp;Master &nbsp;","window.open('UserMasterView.aspx', '_parent');");
Apr 24 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Guilherme Oliveira | last post by:
Hi ! I've a script that works fine in mozilla: <SCRIPT LANGUAGE="JavaScript"> parent.destino.focus(); parent.destino.print(); link.focus(); </script>
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
2
by: Robert Oschler | last post by:
I have Javascript code that clears the SRC property of an IFRAME during the onload event of a web page, if a certain flag is set. In Mozilla/FireFox the clearing of the SRC property works fine and...
3
by: Manuel | last post by:
My web app was running fine until I decided to change the custom errors parameter in the Web.config file. I set it to "On" and the app stopped working in IE but it works fine in Mozilla! So I...
4
by: DavidJColbran | last post by:
Hello - new to the board and wondering if anyone can help with this. I have a site developed with the CMS ModX. It has a CSS UL list menu on the left hand side that needs to have roll-overs and a...
3
by: smartic | last post by:
I'm having problem with this code in firefox but in the Internet Explorer Browser works fine on it what is the wrong in my code ? <html> <head> <title>Like_mail</title> <script...
0
by: needhipandya | last post by:
Hi i am using a function to check-uncheck all checkboxes... That works fine in mozilla but doesnt works in IE. Gives "event is null or not an object" error in status bar (in IE)... I have used same...
2
by: panos100m | last post by:
Hi on page load a javascript functions (timedCount()) is executed (timer) which executes another javascript function (ajax function:findprov(divtowrite) ) in turn this calls a php file to query a...
13
by: Stever1975 | last post by:
I'm working on something similiar to a shopping cart item page. There is a table of items. Each item has an image, a textbox for the qty and an image for the add button. When the add image is...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.