Solved

This really shouldn't happen!

Posted on 2004-09-20
7
141 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now