The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Can I get another set of eyes to proof a function? by Sieldan 2007-03-05 09:02:24
My page reset function works, but IE kicks and error:

Line: 1013
Char: 3
Error: Invalid Argument
Code: 0

And here is the function in question:
function resetpage(){
document.getElementById('SubmitBtn').disabled = false;
document.getElementById('announce').innerHTML = ("Your selected products will display below.");
setOptions(0);
var rowCount = document.getElementById("productout").getElementsByTagName("TR").lengt
h;
for (rowCount;rowCount>=0;rowCount--){
document.getElementById('productout').deleteRow(-1);
}
}

Line 1013 char 3 lines up with the "d" in the last document statement.

Firefox dosent throw and error. Oh, and the function works. Im just trying to clean it up so that no errors get thrown.

Much thanks again.
[ Reply ]
  Working on it, gimme a couple minutes (n/t) by SnappingTurtle2007-03-05 09:03:00
    Cool, no real hurry, its just 'cleanup' by Sieldan2007-03-05 09:06:15
  deleteRow() by sgrunt2007-03-05 09:05:02
    hrmm, by Sieldan2007-03-05 09:08:11
      No it's not. by Didactylos2007-03-05 09:09:52
      IE may not by sgrunt2007-03-05 09:09:58
        So quick to blame IE? by Didactylos2007-03-05 09:12:32
          I would blame IE before I blame the standards. :-P by sgrunt2007-03-05 09:15:02
            Why? by ToLazyToThink2007-03-05 09:44:54
              I suppose it's not the language itself so much as by sgrunt2007-03-05 11:07:37
                cant always blame the tool for the job ;) by Sieldan2007-03-05 11:23:16
  I'm suspicious of that -1 argument by SnappingTurtle2007-03-05 09:09:02
  Found it, and we were all wrong. by Sieldan2007-03-05 09:19:38

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)