• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

This really shouldn't happen!

I've been using HTML and JavaScript side by side for years now... But I don't understand why in the world the last letter of the final array entry for downloadA appears after my download list!!

The page is at: http://sg3k.netfirms.com/azakazam/index.htm

(Excuse the false information about the site being displayed the same in both browsers. I focus on IE before NS)

This error only occurs in IE.

Many thanks in advance. I hope it puzzles you too :)
0
azcn2503
Asked:
azcn2503
1 Solution
 
cLFlaVACommented:

I commented out the following line, and the "e" no longer showed.  Let me know if there are any problems with the rest of the context due to my commenting out the line:

// document.write("<div style=\"width:60%;float:left;\">"+downloadA[i][4]+"<\/div>");
0
 
seanpowellCommented:
I assume you're using includes? They're all out of wack, with the head tag appearing way down the page.

We need to get this thing well-formed...
0
 
seanpowellCommented:
Very odd - Moz doesn't show this "bug", but the code is IE only, so that won't matter...

I'll keep looking.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
azcn2503Author Commented:
I thought the code was well formed...

Anyway, yes; commenting out any of those 3 document.write's will get rid of the error. Odd isn't it?
0
 
azcn2503Author Commented:
Ah.. I found something out when I uploaded my page again - my host modify my code to show an advert. Thing is, they like to put it at the first </head> they see. That's probably why it's all out.
0
 
moduloCommented:
PAQed with points refunded (125)

modulo
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now