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 2 of 2
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    exception that does not get into error console

    Code:
           var divArrayA = document.getElementsByClassName("edit_control");
           var divArrayB = document.getElementsByClassName("display_control");
           var divArray;
           try
           {   
             divArray = divArrayA.concat(divArrayB);
           }
           catch(err)
            {
            txt="There was an error on this page.\n\n";
            txt+="Error description: " + err.message + "\n\n";
            txt+="Click OK to continue.\n\n";
            alert(txt);
            }
    alert pops up: "divArrayA.concat is not a function"

    if there were no try ..except, there would be no effect and nothing in error console.

    What is wrong here ?
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    Code:
    document.getElementsByClassName
    OK, my bad, red part has nothing to do there, but strange that there is no error on that part in error console.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

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