Click to See Complete Forum and Search --> : vbscript
baroberts
Aug 28th, 2000, 08:23 PM
The hidden field can be accessed by it's name, as any other tag on the page.
I know the object can be accessed via it's "id", using it as the "name". Try it. The "name" may work, too.
Thai
Aug 28th, 2000, 10:59 PM
acn you give me an example of vbscript reading a hidden html field please?
thanks!
Thai
baroberts
Aug 29th, 2000, 06:01 AM
Go here and you can see some client script that accesses fields.
http://www4.ewebcity.com/baroberts/
This site is no longer being updated(sorry). However, the client-side script examples may be useful.
Hidden fields are no different from any other in code. An example to create one is:
<input type=hidden name=hiddenfield value="xxxx"></input>
In server-side script you reference them the same as any other field that is "posted".(strHiddenField=Request("hiddenfield"))
Thai
Aug 29th, 2000, 10:47 AM
<html>
<head>
<title>Untitled</title>
</head>
<body background="/images/bground.gif" bgcolor="#ffffff" text="#000000" marginheight="0" topmargin="0">
<input type=hidden name=JobKey value="test">
<script language=vbscript>
msgbox "hi"
strJobKey = request("JobKey")
</script>
</body>
</html>
I tried that but it did not work, can you tell me what im doing wrong?
Thank you for the help, I'm very new with html/vbscript,
Thai
baroberts
Aug 29th, 2000, 08:30 PM
<html>
<head>
<title>Untitled</title>
</head>
<body background="/images/bground.gif" bgcolor="#ffffff" text="#000000" marginheight="0" topmargin="0">
<input type=hidden name=JobKey value="test">
<script language=vbscript>
msgbox "hi"
strJobKey = Document.JobKey.Value
msgbox strJobKey
</script>
</body>
</html>
artemesia
Aug 31st, 2000, 04:51 PM
HI,
I am now reading VB Script books (yes I went on overload and picked up a few at the 75% off bookstore).
I downloaded the ActiveX Control Pad.
Reading through. Similar to VB 6.0, yet different.
The ActiveX Control Pad has only a few controls.
I would like to have access to more controls.
Chart, graph, etc.
I have not yet read how to download freebie controls (or where to buy a cd with some asap) and then load them into the toolbox of the Control Pad. How do I go about doing this?
Took the beginner course of HTML. This is like an addition.
How confusing...
I am feeling overload. Is it terribly hard to grasp all of this?
Thanks,
arty.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.