
Getting/using client information in WEB page
Hi to all,
Following the recommendations found in this newsgroup,
I've tried the following, but nothing is displayed in the
browser window and I don't receive any error either.
<HTML>
<HEAD><TITLE>my title</TITLE></HEAD>
<BODY>
<BR>
<BR> <font color=blue size=5> my title </font>
<BR>
<BR>
<SCRIPT LANGUAGE="VBScript">
<!--
dim cnt
cnt = request.servervariables.count
document.writeln("count is " & cnt & "<BR>")
for each strkey in request.servervariables
document.writeln("key = " & strkey & " value " &
request.servervariables(strkey) & "<BR>")
next
-->
</SCRIPT>
</BODY>
</HTML>
My hope is to be able to catch the client information (specifically the
client Windows Logged on "Username")
and to use it for setting dinamically one of the properties of an <OBJECT>
that will be included in the HTML file.
This I also intended to do by using document.write() to write a <PARM> tag
for the object.
Previously I tried the same using CreateObject("Wscript.network"), but I
understand that this also doesn't work inside HTML, due to security reasons.
I'm very new to all these issues, so I'll be very grateful if anybody could
explain me what I've done wrong and how can I
solve the problem, which I don't think should be very complicated or tricky.
Thanks & Regards,
Iudith Mentzel