PDA

Click to See Complete Forum and Search --> : btnUpdate_onclick event


gilly
Aug 16th, 2000, 05:22 AM
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!

S@NSIS
Aug 16th, 2000, 05:32 AM
Hi,
Try this and see if it works:


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