Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong number of arguments or invalid property assignment

Status
Not open for further replies.

EnemyGateIsDown

Technical User
Oct 3, 2002
235
GB
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)

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
 
Its ok guys the fog has lifted.. noticed that I hadnt used the .value method on the GetElementByID object.. all is ok now.. Its amazing what wandering off to get a cup of coffee can do :)

Cheers,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top