Closed Thread Icon

Topic awaiting preservation: Unknown Error... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8623" title="Pages that link to Topic awaiting preservation: Unknown Error... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Unknown Error... <span class="small">(Page 1 of 1)</span>\

 
Archonian
Nervous Wreck (II) Inmate

From: Sweden, Malmoe
Insane since: Jan 2003

posted posted 04-26-2003 17:23

I've got a DIV in the body, into which a lot of code is written: (the div is called menuobjs)

menuobjs.innerHTML += "<table id=\"sub\" bgcolor=\"black\" width=\"330\" height=\"200\" cellspacing=\"0\"
cellpadding=\"0\" style=\"position: absolute; left: 140px; top: 35px; visibility: hidden;\"><tr><td height=\"3
\"><table cellspacing=\"0\" cellpadding=\"0\"><tr><td><img src=\"images/topl.gif\"></td><td
background=\"images/top.gif\" width=\"100%\"></td><td><img
src=\"images/topr.gif\"></td></tr></table></td></tr><tr><td valign=\"top\"><table width=\"100%\"
height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td background=\"images/left.gif\" width=\"3\"
height=\"100%\"></td><td id=\"subc\"></td><td background=\"images/right.gif\" width=\"3\" height=\"100%
\"></td></tr></table></td></tr><tr><td height=\"3\"><table cellspacing=\"0\" cellpadding=\"0
\"><tr><td><img src=\"images/bottoml.gif\"></td><td background=\"images/bottom.gif\" width=\"100%
\"></td><td><img src=\"images/bottomr.gif\"></td></tr></table></td></tr></table>";


then I do these lines:
var temp = parseInt(csubitem/2); // an integer
var who = characters[temp]; // a string
var mitems = eval(who+'.NOM'); // an integer
var part = ""; for (var i=0; i<mitems; i++) {if (i<15) { part += "<tr></tr>"; } else { break; } }

(where the subc is the ID of a <TD> in the sub table written to 'menuobjs')
subc.innerHTML = "<table width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=\"top\"><table id=\"chars\" class=\"menu\" cellspacing=\"0\" cellpadding=\"0\" style=\"padding-top: 10px;\"><tr><td style=\"color: gold; padding-left: 20px;\">Magic</td><td style=\"padding-left: 20px;\">»</td><td style=\"padding-left: 3px;\">Ethior</td><td style=\"padding-left: 15px; color: black;\">»</td><td style=\"padding-left: 3px;\">Brax</td><td style=\"padding-left: 15px; color: black;\">»</td><td style=\"padding-left: 3px;\">Crystal</td></tr></table></td></tr><tr><td valign=\"top\" style=\"padding-top: 15px;\"><table id=\"mc\" class=\"g\" cellspacing=\"0\" cellpadding=\"0\" style=\"padding-left: 30px; padding-top: 4px;\">"+part+"</table></td></tr></table>";

(where the 'mc' is a table ID in 'subc')
---this is the loop---
var n=0; while (n < mitems) { if (n > 14) { n = 0; } document.getElementById("mc").getElementsByTagName("TR")[n].innerHTML += "<td style=\"color: black;\">»</td><td style=\"padding-left: 3px;\">"+magic[temp][n]+"</td>"; n++; }
----------------------

This last piece of code, the loop, is what I think causes the problem.
But I dunno...

[This message has been edited by Archonian (edited 04-26-2003).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-26-2003 17:25

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Archonian
Nervous Wreck (II) Inmate

From: Sweden, Malmoe
Insane since: Jan 2003

posted posted 04-26-2003 17:51

It says it's an Unknown Error. I can't get the line number since my error-reporting tool creates another nice little window on top of the very window where I can press a little button called Show Information. When the nice little window's only 'OK' button is clicked the other window disappears as well, but I did locate the error using several alert boxes after each line. And the error didn't show until the last loop was launched.

Scott
Bipolar (III) Inmate

From: schillmania.com
Insane since: Jul 2002

posted posted 04-27-2003 22:06

Assuming you're using IE for this, try it in Mozilla. It might give more detailed error info, and may not even give an error at all (there may be something weird with the loop causing the error under IE).

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-27-2003 22:13

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu