Solved

Weird characters everywhere when website is viewed in Firefox but does not appear in HTML

Posted on 2008-10-27
7
334 Views
Last Modified: 2013-12-07
When this page here is viewed in Firefox

http://www.allflexinc.com/

Strange characters fill the entire page and none of this appears in the file and it looks completely fine in Internet Explorer.  This happened after I made made changes to the menu file using Expression Web; attached is the HTML behind the menu file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY><div class="Menu" style="LEFT: 0px; POSITION: absolute; TOP: 139px">
<table border="0" cellpadding="0" cellspacing="0" width="193">
	<tr height="28">
		<td bgcolor="#761717"><A class=MenuText onmouseover="objMenus.showMenu('DesignGuide');objMenus.updateRootMenus('DesignGuide');" title="Products, Services and Design Guide" href="/guid.shtml">
		Products, Services &amp;<br/> Design Guide</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Service href="/per.shtml">
		Service</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Capabilities href="/capa.shtml">
		Capabilities</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Request-Sample href="mailto:information@allflexinc.com">
		Request a Sample</A></td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Request-Quote href="requestaquote.php">
		Request a Quote</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Benefits href="/bene.shtml">
		Benefits</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=News href="/news.shtml">
		News</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title=Links href="/links.shtml">
		Links</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title=Links href="/Employment.shtml">
		Career <BR> Opportunities</A></td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="Contact Us" href="/contact.shtml" >
		Contact Us</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="About Us" href="/about.shtml" >
		About Us</A>&nbsp;</td>
	</tr>
	<tr height="1"><td>&nbsp;</td></tr>
	<tr height="28">
		
		<td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="Visit Us" href="/VisitUs.shtml" >
		Visitors&nbsp;Guide</A></td>
	</tr>
	
</table>
 
<script language="javascript" type="text/javascript" src="/Includes/menu2.js"></script>
<script LANGUAGE="javascript" type="text/javascript">
	
	objMenus.createNewMenu("DesignGuide", RootMenuHeight * -.25, 150, 150);
	objMenus.addToMenu("DesignGuide", "/DesignGuide/sing.shtml", "Single-Sided Circuits", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/double.shtml", "Double-Sided Circuits", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/multi-layer-circuits.shtml", "Multi-Layer Circuits", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/maxi.shtml", "Maxi-Flex&reg; Circuits", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/cover.shtml", "Coverlay Options", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/desi.shtml", "Conductor & Filleting Guidlines", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/shie.shtml", "Shielding", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/rigi.shtml", "Rigidizers & Stiffeners", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/term.shtml", "Termination Methods", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/maxi.shtml", "Maxi-Flex&#153;", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/tech.shtml", "Technical Information", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/cad.shtml", "CAD Info", "", "");
	objMenus.addToMenu("DesignGuide", "/DesignGuide/zif.shtml", "ZIF Connectors","","");
 
	/*objMenus.addToMenu("DesignGuide", "#", "&nbsp;Conductor & Filleting Guidlines", "", "HistorySub2");
 
	objMenus.createNewMenu("HistorySub1", (RootMenuHeight * 7) + SubMenuHeight, 247, 100);
	objMenus.addToMenu("HistorySub1", "#", "&nbsp;Test 1", "", "");
	objMenus.addToMenu("HistorySub1", "#", "&nbsp;Test 2", "", "");
	
	objMenus.createNewMenu("HistorySub2", (RootMenuHeight * 7) + (SubMenuHeight * 3), 247, 100);
	objMenus.addToMenu("HistorySub2", "#", "&nbsp;Test 1", "", "");
	objMenus.addToMenu("HistorySub2", "#", "&nbsp;Test 2", "", "");
	*/
	objMenus.addRootMenus("DesignGuide");
		
	objMenus.genMenus();
</script>
</div></TD>
		<td width="66"></td></TR><tr><td width="100%" colspan="3"></td></tr></TABLE></BODY></HTML>

Open in new window

0
Comment
Question by:davideo7
  • 4
  • 2
7 Comments
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22817323
Hi there;

weird characters in your link: dtd line...

I removed dtd line...

I removed </td> and following 112th line td and tr since they have no corresponding tags...(or i missed them)

I edit the line 82...seems you add that line to get rid of that weird look...
objMenus.createNewMenu("DesignGuide");

in your snippet, you have problems with line 82...objMenus not defined through FireBug i have seen that...

Modified code is attached as snippet...

Best regards...
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY><div class="Menu" style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<table border="0" cellpadding="0" cellspacing="0" width="193">
    <tr height="28">
        <td bgcolor="#761717"><A class=MenuText onmouseover="objMenus.showMenu('DesignGuide');objMenus.updateRootMenus('DesignGuide');" title="Products, Services and Design Guide" href="/guid.shtml">
        Products, Services &amp;<br/> Design Guide</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Service href="/per.shtml">
        Service</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Capabilities href="/capa.shtml">
        Capabilities</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Request-Sample href="mailto:information@allflexinc.com">
        Request a Sample</A></td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Request-Quote href="requestaquote.php">
        Request a Quote</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=Benefits href="/bene.shtml">
        Benefits</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText onmouseover="objMenus.updateRootMenus('');" title=News href="/news.shtml">
        News</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title=Links href="/links.shtml">
        Links</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title=Links href="/Employment.shtml">
        Career <BR> Opportunities</A></td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="Contact Us" href="/contact.shtml" >
        Contact Us</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="About Us" href="/about.shtml" >
        About Us</A>&nbsp;</td>
    </tr>
    <tr height="1"><td>&nbsp;</td></tr>
    <tr height="28">
        
        <td bgcolor="#761717" ><A class=MenuText  onmouseover="objMenus.updateRootMenus('');" title="Visit Us" href="/VisitUs.shtml" >
        Visitors&nbsp;Guide</A></td>
    </tr>
    
</table>
 
<script language="javascript" type="text/javascript" src="/Includes/menu2.js"></script>
<script LANGUAGE="javascript" type="text/javascript">
    
    objMenus.createNewMenu("DesignGuide");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/sing.shtml", "Single-Sided Circuits", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/double.shtml", "Double-Sided Circuits", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/multi-layer-circuits.shtml", "Multi-Layer Circuits", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/maxi.shtml", "Maxi-Flex&reg; Circuits", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/cover.shtml", "Coverlay Options", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/desi.shtml", "Conductor & Filleting Guidlines", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/shie.shtml", "Shielding", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/rigi.shtml", "Rigidizers & Stiffeners", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/term.shtml", "Termination Methods", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/maxi.shtml", "Maxi-Flex&#153;", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/tech.shtml", "Technical Information", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/cad.shtml", "CAD Info", "", "");
    objMenus.addToMenu("DesignGuide", "/DesignGuide/zif.shtml", "ZIF Connectors","","");
 
    /*objMenus.addToMenu("DesignGuide", "#", "&nbsp;Conductor & Filleting Guidlines", "", "HistorySub2");
 
    objMenus.createNewMenu("HistorySub1", (RootMenuHeight * 7) + SubMenuHeight, 247, 100);
    objMenus.addToMenu("HistorySub1", "#", "&nbsp;Test 1", "", "");
    objMenus.addToMenu("HistorySub1", "#", "&nbsp;Test 2", "", "");
    
    objMenus.createNewMenu("HistorySub2", (RootMenuHeight * 7) + (SubMenuHeight * 3), 247, 100);
    objMenus.addToMenu("HistorySub2", "#", "&nbsp;Test 1", "", "");
    objMenus.addToMenu("HistorySub2", "#", "&nbsp;Test 2", "", "");
    */
    objMenus.addRootMenus("DesignGuide");
        
    objMenus.genMenus();
</script>
</div></BODY></HTML>

Open in new window

0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22817336
<<I removed </td> and following 112th line td and tr since they have no corresponding tags...(or i <<missed them)

nusphere says so...
0
 

Author Comment

by:davideo7
ID: 22817363
jazzlllove: that didn't seem to help
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22817425
are we talking about the characters in the screenshot?
this.JPG
0
 
LVL 12

Expert Comment

by:jazzIIIlove
ID: 22817436
if so:
<!DOCTYPE>

A DTD defines the elements and attributes and their relationship in a document. Technically, no HMTL structure that isnt defined in DTD cannot reside in that document. But you can leave it...

best regards...
0
 
LVL 12

Accepted Solution

by:
ShaneJones earned 500 total points
ID: 22818382
Have you tried changing your charset to UTF-8 or iso-8859-1

I would put your doctype on there and then go to

http://validator.w3.org/ 

This will tell you all that is wrong with your code! Resolve them issues and you'll be onto a winner!

Using the code in your question gave me 7 Errors and 1 warning,
0
 

Author Closing Comment

by:davideo7
ID: 31510542
That did the trick, thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question