S
scott cooper
I am trying to change text in the div tags of my page with values from an
object obtained from a server side script but the object is not accessable
to the client script. I get an object required error but I know the object
exists and is correct becuase I can write the query string value and
properties of the object with a server script. I also tried to access the
div tags from the server script but this also resulted in an object required
error.
<body>
<%
sLdapStr = request.QueryString("ldapurl")
set usrobj = GetObject(sLdapStr)
%>
<div id=oFirstName>label1</div><br>
<div id="oLastName">label2</div><br>
<div id="oEmpNum">label3</div><br>
<%
sLdapStr = request.QueryString("ldapurl")
response.Write sldapstr & "<br>"
response.Write usrobj.Get("givenName")
%>
<script language=vbscript>
oFirstName.InnerText = usrobj.Get("givenName")
oLastName.InnerText = usrobj.Get("sn")
oEmpNum.InnerText = usrobj.Get("employeeID")
</script>
</body>
object obtained from a server side script but the object is not accessable
to the client script. I get an object required error but I know the object
exists and is correct becuase I can write the query string value and
properties of the object with a server script. I also tried to access the
div tags from the server script but this also resulted in an object required
error.
<body>
<%
sLdapStr = request.QueryString("ldapurl")
set usrobj = GetObject(sLdapStr)
%>
<div id=oFirstName>label1</div><br>
<div id="oLastName">label2</div><br>
<div id="oEmpNum">label3</div><br>
<%
sLdapStr = request.QueryString("ldapurl")
response.Write sldapstr & "<br>"
response.Write usrobj.Get("givenName")
%>
<script language=vbscript>
oFirstName.InnerText = usrobj.Get("givenName")
oLastName.InnerText = usrobj.Get("sn")
oEmpNum.InnerText = usrobj.Get("employeeID")
</script>
</body>