Solved

This really shouldn't happen!

Posted on 2004-09-20
7
160 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
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.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

815 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

13 Experts available now in Live!

Get 1:1 Help Now