473,609 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code Working in IE but not in Firefox

11 New Member
Hi,

I am working in JSP code.A Menubar is displayed in JSP page.It's working fine in IE. But in case of firefox the very first menuitem is not working.If i move that menu item as second means it's working fine.Can anyone help me on this.

XML code used:


Expand|Select|Wrap|Line Numbers
  1.  <menubar key="menubar_home" url="Home.do"/>Home
  2.  
  3.  
  4.         <!-- CAs Menu -->
  5.         <menubar key="menubar_cas" url="CASearch.do">CAs
  6.             <menuitem key="CASearch" url="CASearch.do"/>CASearch
  7.             <menuitem key="CAAdd" url="CAAdd.do"/>CAAdd
  8.         </menubar>
  9.  
  10.         <!-- Signers Menu -->
  11.         <menubar key="menubar_signers" url="SignerSearch.do">Signers
  12.             <menuitem key="SignerSearch" url="SignerSearch.do"/>SignerSearch
  13.             <menuitem key="SignerAdd" url="SignerAdd.do"/>SignerAdd
  14.         </menubar>
  15.  
  16.         <!-- Status Sources Menu -->
  17.         <menubar key="menubar_statussources" url="StatusSourceSearch.do">StatusSources
  18.             <menuitem key="StatusSourceSearch" url="StatusSourceSearch.do"/>StatusSourceSearch
  19.             <menuitem key="StatusSourceAdd" url="StatusSourceAdd.do"/>StatusSourceAdd
  20.         </menubar>
  21.  
  22.         <!-- System Menu -->
  23.         <menubar key="menubar_system" url="SystemOverview.do">System
  24.             <menuitem key="Overview" url="SystemOverview.do"/>Overview
  25.             <menuitem key="SystemSettings" url="SystemSettings.do"/>SystemSettings
  26.             <menuitem key="EventLogging" url="SystemEventLogging.do"/>EventLogging
  27.             <menuitem key="OCSP" url="SystemOCSPConfig.do"/>OCSP
  28.             <menuitem key="SyncClients" url="SystemSyncClientSearch.do"/>SyncClients
  29.             <menuitem key="ClusterNodes" url="SystemClusterNodeSearch.do"/>ClusterNodes
  30.         </menubar>
  31.  
  32.  
JSP code :

[html]<script language="JavaS cript" src="scripts/overlib_mini.js "></script>

<script language="JavaS cript1.2" >
oM=new makeCM("oM"); oM.resizeCheck= 1; oM.rows=1; oM.offlineRoot= ""; oM.onlineRoot=" "; oM.pxBetween =0;
oM.fillImg="ima ges/cm_fill.gif"; oM.fromTop=<%=W ebAppUtils.getS tring(resourceB undle, "menu_mainOffse tFromTop", true)%>; oM.fromLeft=10; oM.wait=300; oM.zIndex=400;
oM.useBar=1; oM.barWidth="me nu"; oM.barHeight="m enu"; oM.barX="menu"; oM.barY="menu"; oM.barClass="cl Bar";
oM.barBorderX=0 ; oM.barBorderY=0 ;

oM.level[0]=new cm_makeLevel(13 0,18,"clT","clT over",1,1,"clB" ,0,"bottom",0,-1,0,0,0);
oM.level[1]=new cm_makeLevel(16 5,18,"clS","clS over",1,1,"clB" ,0,"right",-10,0,"images/caret_gray.gif" ,10,10);

<% for (int i = 0; i < mainMenuVector. size(); i++) {
WrapMenuItem mi = (WrapMenuItem)m ainMenuVector.g et(i);
String label = mi.getLabel();
if (mi.getSelected ().equals("true ")) {
label = "<b>" + mi.getLabel() + "</b>";
}
if (mi.isOnclickEn abled() == false) { %>
oM.makeMenu("<% =mi.getCoolMenu ID()%>","<%=mi. getCoolMenuPare ntID()%>","<%=" &nbsp;" + label%>","<%=mi .getUrl()%>","" ,"<%=mi.getWidt h()%>");
<% } else { %>
oM.makeMenu("<% =mi.getCoolMenu ID()%>","<%=mi. getCoolMenuPare ntID()%>","<%=" &nbsp;" + label%>","","", "<%=mi.getWidth ()%>","","","", "","","","","", "<%=mi.getUrl() %>");
<% } %>
<% } %>
<% if (mainMenuVector .size() > 0) { %>
oM.menuPlacemen t="0"
oM.construct()
<% } %>
</script>[/HTML]
Aug 29 '07 #1
26 2349
dmjpro
2,476 Top Contributor
Welcome to TSDN.
U better to use code tags.

Kind regards,
Dmjpro.
Aug 29 '07 #2
Jenitha S
11 New Member
I can't get you.What tags i have to add.
Aug 29 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
I can't get you.What tags i have to add.
Use CODE tags when posting code. I've added them for you in your original post. It makes code much easier to read. See the Reply/Posting Guidelines on the right next time you post.
Aug 29 '07 #4
dmjpro
2,476 Top Contributor
I can't get you.What tags i have to add.
Means whenever You post your code then look at the right side then you can see Reply Guidelines.
Follow that then it will be easier to solve your problem.
Ok.

Kind regards,
Dmjpro.
Aug 29 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
Are you using Javascript or JSP to generate this menu? Do you get any errors? If so, what are the error messages?
Aug 29 '07 #6
Jenitha S
11 New Member
Are you using Javascript or JSP to generate this menu? Do you get any errors? If so, what are the error messages?

JSP is used.In some log file this message is recorded.

61: java.lang.Threa d.run(Thread.ja va:534)
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
Error on line 11 of document jndi:/localhost/WEB-INF/wrapMenu.xml: The end-tag for element type "menu" must end with a '>' delimiter.
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
Error on line 63 of document jndi:/localhost/WEB-INF/wrapMenu.xml: The element type "menubar" must be terminated by the matching end-tag "</menubar>".
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
Aug 29 '07 #7
dmjpro
2,476 Top Contributor
JSP is used.In some log file this message is recorded.

61: java.lang.Threa d.run(Thread.ja va:534)
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
Error on line 11 of document jndi:/localhost/WEB-INF/wrapMenu.xml: The end-tag for element type "menu" must end with a '>' delimiter.
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
Error on line 63 of document jndi:/localhost/WEB-INF/wrapMenu.xml: The element type "menubar" must be terminated by the matching end-tag "</menubar>".
jndi:/localhost/WEB-INF/wrapMenu.xml is not well-formed.
It is impossible.
This is Server Side Problem.
If your code works in IE then your in Mozilla you will find it works fine.
What I think.

Kind regards,
Dmjpro.
Aug 29 '07 #8
Jenitha S
11 New Member
It have to work but it's not working.
Aug 29 '07 #9
acoder
16,027 Recognized Expert Moderator MVP
You're missing an ending menubar tag for the first ("Home") tag.

This is a JSP problem. I'll move this to the Java forum where you're more likely to solve your problem.
Aug 29 '07 #10

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

Similar topics

8
4987
by: Gregory Piñero | last post by:
Hi guys, I'm trying to run this statement: os.system(r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + ' "www.blendedtechnologies.com"') The goal is to have firefox open to that website. When I type r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
3
6986
by: The Bicycling Guitarist | last post by:
http://www.TheBicyclingGuitarist.net/css/index.css I have red nav buttons that turn blue when hovered over and turn purple after being visited. The red and blue work in FireFox, but not the visited color. How can I fix this? It's always worked in MSIE cough cough. It's for my index page http://www.TheBicyclingGuitarist.net/index.htm
6
14442
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the postback code, but I have a workaround for that installed (and it looks like the code generated by ASP.NET when it renders the page does the same thing, namely, setting document<). However, the problem still exists under firefox. Has anyone come...
7
9596
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script language="JavaScript"> var cntlName; var eleTarget = document.getElementById('hiding'); function showOrHide(){
1
3144
by: ajaysoniji | last post by:
Hi, I am using this code to read the option values from a select option. I am getting the reference of that select option in arg1. Its working fine with mozilla firefox but not with Internet Explorer. It gives the lenth but failing to read the arguments(Shown in bold). It gives the alert Internet Explorer 4 for IE and Netscape 5 for Mozilla firefox for the alert in line 4. Please Suggest as soon as possible how I can read the values of the...
9
5296
by: javakid | last post by:
Hi Following form validatioin code is working fine on IE but not working on Mozilla Firefox V2. Can any body suggest? Regards <script ="JAVASCRIPT" type="text/javascript"> //--------------- LOCALIZEABLE GLOBALS --------------- var d=new Date();
5
6588
by: CoolForU | last post by:
this is my code and i call this code from code behinde file on page load like this useragree.Attributes.Add("onclick", "CheckSelection();") this is working fine with IE but not working with fire fox. in firefox i got error : Error: CheckSelection is not defined
3
2005
by: rajasree | last post by:
Hi all, am doing a project in PHP. my javascript code is working properly in ie. But its not working in firefox. Please help me my code is as follows; <script language="javascript" type="text/javascript"> function call() { var box=new Array(50);
1
8016
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the flash window comes above the iframe area the html links stop working. Yet the links remain active when the flash window is outside the iFrame area. This problem is coming in Firefox, but running fine in IE. If anybody has any solution, please...
0
8127
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8067
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8567
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8215
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8398
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5509
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2529
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.