Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2004
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unknown Runtime Error

    With this I get an Unknown Runtime Error,
    Anyone sees anything wrong in this 3 lines?

    function delete(number,block) {
    document.all["block" + number + "" + block].innerHTML = ""
    }

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    a minor adjustment which may or may not work ...

    Code:
    function delete(number,block)
    {
         var sId = "block" + number + block ;
         document.all[sId].innerHTML = "" ;
    }

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    actually, "delete" is a reserved word, so you can't use it!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •