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.
Printable View
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.
acn you give me an example of vbscript reading a hidden html field please?
thanks!
Thai
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"))
I tried that but it did not work, can you tell me what im doing wrong?Code:<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>
Thank you for the help, I'm very new with html/vbscript,
Thai
<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>
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.