EnemyGateIsDown
Technical User
Hi Guys,
Perhaps I'm suffering from post Christmas brain deadness but can someone tell me what I'm doing wrong here?
I have written some in-line javascript which runs as the page builds to populate a control on the page (The code is after the control is defined)
However when I press the button which resubmits the page the following error is produced:
[red]
Line 1655: Wrong number of arguments or invalid property assignment
[/red]
Line 1655 is the getElementbyid statement
Any ideas as to where Im going wrong??
Any help is as always greatly appreciated
Cheers,
Chris
Perhaps I'm suffering from post Christmas brain deadness but can someone tell me what I'm doing wrong here?
I have written some in-line javascript which runs as the page builds to populate a control on the page (The code is after the control is defined)
Code:
if request.form("hRoom_id1") <> "" then
Set getrs = createobject("ADODB.Recordset")
SQL = "select [Meeting Room] From Rooms where room_id = " & request.form("hRoom_id1")
getrs.open SQL, db, 3, 1
if getrs.recordcount > 0 then
%>
<script language ="javascript">
//alert("In here");
document.getElementById("GENERAL/MEETING TITLE") = "<%=getrs("Meeting Room").value%>";
</script>
<%
End if
End if
However when I press the button which resubmits the page the following error is produced:
[red]
Line 1655: Wrong number of arguments or invalid property assignment
[/red]
Line 1655 is the getElementbyid statement
Any ideas as to where Im going wrong??
Any help is as always greatly appreciated
Cheers,
Chris