Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate header in new Firefox and Chrome browsers. IE8 is fine. 1

Status
Not open for further replies.

Designware

Technical User
Sep 24, 2002
202
Hi,

I have headers in an called from an include file (.inc) for multiple links on a home page. This has displayed correctly for some time. However, when the update for Firefox and Chrome came out, only the first header duplicated (there's one graphic right on top of that same graphic).

Here's the code:

<!-- Column 1 Sub Features -->

<!-- Video Production -->
<h1 id="vidpro"><a href="category.jsp?path=-1|23562&id=65874" title="Video Production">Video Production</a></h1>
<ul>
<li><a href="category.jsp?path=-1|23562|98979&id=106490" title="VHS">VHS</a></li>
<li><a href="category.jsp?path=-1|23562|98979&id=98983" title="Clear Pressure Sensitive">Clear Pressure Sensitive</a></li>
<li><a href="category.jsp?path=-1|23562|98979&id=98982" title="Repositionable Self Adhesive">Repositionable Self Adhesive</a></li>
<li><a href="category.jsp?path=-1|23562&id=98979" title="see more Book Pockets">see more Book Pockets</a></li>
</ul>

<!-- Laminate -->
<h1 id="dvddup"><a href="category.jsp?path=-1|23268&id=23269" title="Laminate">Laminate</a></h1>
<ul>
<li><a href="category.jsp?path=-1|23268|23269|85359&id=85360" title="Bio-Fresh Antimicrobial Laminate">Bio-Fresh Antimicrobial Laminate</a></li>
<li><a href="category.jsp?path=-1|23268|23269|85359&id=85353" title="Economy Vistafoil Vinyl Laminate">Economy Vistafoil Vinyl Laminate</a></li>
<li><a href="category.jsp?path=-1|23268|23269|85359&id=85476" title="Crista-Clear Laminate">Crista-Clear Laminate</a></li>
<li><a href="category.jsp?path=-1|23268&id=23269" title="see more Laminate">see more Laminate</a></li>
</ul>

The h1 id="vidpro" is the one that's duplicating.

I thought the graphic vidpro may be the problem, so I substituted one that was working below (dvddup) into the first spot ... just to test. The dvddup graphic appeared at the top, duplicated.

This issue occurs in the new versions of Firefox and Chrome. Prior to the update, Firefox displayed correctly. IE 8 displays correctly.

Any thought / suggestions are greatly appreciated!

Dale
 
Hi

Probably I misunderstand you, but how i this related to JavaScript ?

Furthermore I not understand what that code is : main page source code, included snippets source code, generated output ? First when reading "include file (.inc)" I thought you are using SSI. Then when seeing the .jsp extensions all seemed to be Java server pages. Now I am not sure.

Then you were talking about "graphic" but the code contains no [tt]img[/tt] tag nor background image. So I am clueless about what kind of graphic gets duplicated.

Please clarify abit. Even better would be to post the URL of the page with the problem.


Feherke.
 
feherke,

Thanks for the response. I am not a web developer, but have been saddled with this task.

All of the web pages have .jsp, so that's why I put it in this forum.

The graphic (vidpro) and other graphics are defined in the master style sheet (.css)

The URL is
Thanks for your help.
 
JSP stands for Java Server Pages, its a completely different beast to Javascript. The first is Server Side, and the second one is client side. While they may be similar in syntax they are not the same thing.

As for your error, you seem to have have an non-terminated image tag for the back to school sale banner, that may be causing the issue.

Code:
<a href=[URL unfurl="true"]http://www.thelibrarystore.com/webspecials.jsp><img[/URL] src=images/web_promo/august_web_specials.jpg [red]>>[blue]_[/blue]<<[/red]</a>

As the browser attempts to close the unfinished tag the next time it sees a another closing tag. Fix that and if the duplication still occurs, I suggest you post in forum695

They'll need to see the actual JSP source code. Rather than the resulting HTML though.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top