Results 1 to 6 of 6

Thread: vbscript

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Forsyth, GA, USA
    Posts
    26
    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.
    Brad
    Contract Developer

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Posts
    168
    acn you give me an example of vbscript reading a hidden html field please?

    thanks!
    Thai

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Forsyth, GA, USA
    Posts
    26
    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"))
    Brad
    Contract Developer

  4. #4
    Addicted Member
    Join Date
    Mar 2000
    Posts
    168
    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>
    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

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Forsyth, GA, USA
    Posts
    26
    <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>
    Brad
    Contract Developer

  6. #6
    New Member
    Join Date
    Aug 2000
    Location
    Fort Worth, TX
    Posts
    1

    Unhappy ActiveX Control Pad

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width