Results 1 to 2 of 2

Thread: object error?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Exclamation

    When i run my update statement i get an error saying "document.form1.txtyearstart.value" is not an object"?? Any suggestions?


    function btnUpdate_onclick(){


    var strAddress = 'FinancialYear.asp?Action="U"' +
    '&yearstart='document.form1.txtyearstart.value +
    '&yearend=' + document.form1.txtyearend.value +
    '&userid=<%=strStampUser%>'
    window.location = strAddress
    }
    -->

    Thanks in advance!
    Gilly

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Try putting a + in front of the

    document.form1.txtyearstart.value + ......

    bit;

    eg;

    Code:
    function btnUpdate_onclick(){ 
    
    
    var strAddress = 'FinancialYear.asp?Action="U"' + 
    '&yearstart=' + document.form1.txtyearstart.value + 
    '&yearend=' + document.form1.txtyearend.value + 
    '&userid=<%=strStampUser%>' 
    window.location = strAddress 
    } 
    -->
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

Posting Permissions

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



Click Here to Expand Forum to Full Width