extra space in Netscape

They have: 10 posts

Joined: Aug 1999

Has anyone ever seen Netscape add in a lot of extra space when calling an external javascript write.document function. The one I'm calling writes out a whole drop-down box.

IE doesn't add the additional space that Netscape does. I tried moving nearly everything to one line in the external script but that didn't change anything.

Anyone know what I'm talking about? I'd post the script, but I don't have it on me.

- Botch

They have: 5,633 posts

Joined: Jan 1970

Do you have a URL?

------------------
http://go.to/hass

They have: 297 posts

Joined: Apr 1999

Using document.write inside of nested tables can lead to unpredictable results in both broswers. Its merely luck whether it works or not.

malte

------------------
Malte Ubl - www.Boardzilla.org
Communication: public<->programmers
of the Boardzilla BB

They have: 10 posts

Joined: Aug 1999

OK. Sorry for the wait, but here's the external script I call from the header:

var entries=16;

var song= new Array(entries)
song[0]="The Adventures of Commodore Impossible";
song[1]="The Organgrinder";
song[2]="Snail";
song[3]="LEgioN";
song[4]="Spontaneous Human Combustion";
song[5]="Destroy New York";
song[6]="Rorschach";
song[7]="Duet for Halo and Condom";
song[8]="Christmas In Hell";
song[9]="Sin";
song[10]="Poolside";
song[11]="Clowns Are Coming To Anally Rape Your Sister";
song[12]="Wires in the Half-Light";
song[13]="Kabonkers";
song[14]="Juggler";
song[15]="Ethan In Space";

var page= new Array(entries)
page[0]="../comm/commodor.html";
page[1]="../organ/organ.html";
page[2]="../snail/snail.html";
page[3]="../legion/legion.html";
page[4]="../shc/shc.html";
page[5]="../dny/destroy.html";
page[6]="../rorsch/rorschac.html";
page[7]="../duet/duet.html";
page[8]="../cih/cih.html";
page[9]="../sin/sin.html";
page[10]="../pool/poolside.html";
page[11]="../clown/clown.html";
page[12]="../wires/wires.html";
page[13]="../kbonk/kbonk.html";
page[14]="../jugg/juggler.html";
page[15]="../ethan/ethan.html";

function navigation(entry)
{
document.write("<CENTER><font face=\"Copperplate Gothic Light\"><font size=-2><FORM name=\"pages\"><SELECT name=\"tune\">")

document.write("<OPTION SELECTED value=\"" + page[entry+1] + "\">" + song[entry+1] + "<br>")

var x=entry;
var y=0;

for (x==entry;x+2<entries;x++)
document.write("<OPTION value=\"" + page[x+2] + "\">" + song[x+2] + "<br>");

for (y==0;y<entry;y++)
document.write("<OPTION value=\"" + page[y] + "\">" + song[y] + "<br>")
document.write("</SELECT>    <INPUT type=\"button\" name=\"go\" value=\"Drink This Song\" onClick=\"window.location=document.pages.tune.options[document.pages.tune.selectedIndex].value\"></FORM></CENTER></font>")
}

And here's how I call the function in the body:

<script language="JavaScript">
<!--hide

navigation(x)

//-->
</SCRIPT>

.... where "x" is the number of the page that's calling the function.

Anyway, any suggestions? Once again, the space problem only occurs in Netscape.

- Botch

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.