I'm trying to call a piece of javascript within some asp and failing!
I've got the following javascript function in the head
function select_month(iMonth)
{
document.fSelected.tMonth.value = iMonth
}
Then when the page is loaded and the dates are all configured I want the month to be put in a text field for processing
so I have the following..
if Request.QueryString("sDate"
= "" then
sDate = customdateformat(Date(),"-"
else
sDate = Request.QueryString("sDate"
end if
iMonth = Month(sDate)
<----PASS iMonth TO JAVASCRIPT
Can anyone help?
Thanks
Lbob
I've got the following javascript function in the head
function select_month(iMonth)
{
document.fSelected.tMonth.value = iMonth
}
Then when the page is loaded and the dates are all configured I want the month to be put in a text field for processing
so I have the following..
if Request.QueryString("sDate"
sDate = customdateformat(Date(),"-"
else
sDate = Request.QueryString("sDate"
end if
iMonth = Month(sDate)
<----PASS iMonth TO JAVASCRIPT
Can anyone help?
Thanks
Lbob