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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object required Error?

Status
Not open for further replies.

Ciarrai

Technical User
Jun 27, 2003
17
US
I am reading back the next available number back from a database, and using this to add a new user (record). On submission though the information is processed but an Object Required Error is returned.


<%
dim NextID
NextNum=&quot;select Max(ACS_ROLE_ID)+1 as MaxRoleId from jjwwp.ACS_ROLE&quot;
set NextID = conn.Execute(NextNum)
%>

<form method=&quot;post&quot; action=&quot;adminAddNewRole.asp&quot; name=&quot;form1&quot; onSubmit=&quot;return validate()&quot;>

<table border=0 cellspacing=2 cellpadding=4 style=&quot;font-size:x-small; font-family:verdana&quot;>
<tr><td align=right bgcolor=&quot;#669999&quot;><font size=&quot;2&quot; color=&quot;#FFFFFF&quot;><b>WWP Acs Role Id:</b></font></td>
<td bgcolor=&quot;#DBEBEB&quot;>
<input Name=&quot;RoleId&quot; Size = &quot;30&quot; MAXLENGTH=&quot;3&quot; value=&quot;<%=NextID(&quot;MaxRoleId&quot;)%>&quot; readonly> </td>
</tr></form>
 
That sounds like a javascript error, most likely inside the javascript function validate() that your calling from the form onSubmit event.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top