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
    New Coder
    Join Date
    Aug 2008
    Location
    Boston, MA
    Posts
    24
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Document boxxes has no properties

    I'm working on a JavaScript program and this code is error free:

    ct=0;
    {while (ct<nd){if(xg[ct]==1){ct=ct+1}}};
    if (3>2){document.boxxes.s3a.value="GHI"};
    if (ct < nd || ct>nd){alert("DUPLICATE DIGITS NOT ALLOWED");sw=1}};

    However, if I move that third line just beneath the "DUPLICATE DIGITS ..." line, I get an error message stating "document.boxxes has no properties".
    Incidentally, I wrote that if(3>2) part because without it, I also get the "document.boxxes has no properties" message.
    Any help with this would be greatly appreciated.

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Insufficient data.

    Impossible to see what's all about, as you did now show us the elements. We need to see the HTML code as well and probably the whole code. Better a link to a test page.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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