Results 1 to 2 of 2

Thread: btnUpdate_onclick event

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651
    The code for my button on click event doesnt work....think the syntax is incorrect..any suggestions?


    Function btnUpdate_onclick(){

    var strAddress = 'FinancialYear.asp?Action="U"' +

    '&yearstart=' + document.form1("yearstart").value +
    '&yearend=' + document.form1("yearend").value +
    '&userid=' + document.form1("userid").value +

    window.location = strAddress



    Thanks In advance!

    Gilly

  2. #2
    Addicted Member S@NSIS's Avatar
    Join Date
    Aug 2000
    Location
    Stoke-On-Trent, England
    Posts
    243
    Hi,
    Try this and see if it works:

    Code:
    Function btnUpdate_onclick(){ 
    
    var strAddress = 'FinancialYear.asp?Action=U' + 
    '&yearstart=' + document.form1.yearstart.value + 
    '&yearend=' + document.form1.yearend.value + 
    '&userid=' + document.form1.userid.value 
    
    window.location = strAddress
    I gather that 'yearstart','yearend' and 'userid' are fields in your form 'form1'!

    Hope this helps,

    Shaun

    Web/Application Developer
    VB6 Ent (SP5), Win 2000,SQL Server 2000

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