Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

This really shouldn't happen!

Posted on 2004-09-20
7
Medium Priority
?
199 Views
Last Modified: 2010-04-09
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
Comment
Question by:azcn2503
7 Comments
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12105737

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
 
LVL 31

Expert Comment

by:seanpowell
ID: 12105785
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
 
LVL 31

Expert Comment

by:seanpowell
ID: 12105985
Very odd - Moz doesn't show this "bug", but the code is IE only, so that won't matter...

I'll keep looking.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:azcn2503
ID: 12106460
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
 
LVL 3

Author Comment

by:azcn2503
ID: 12110843
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12839550
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

916 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