Results 1 to 6 of 6

Thread: Another ASP form question

  1. #1

    Thread Starter
    Hyperactive Member vbuser1976's Avatar
    Join Date
    Sep 2000
    Location
    Yonkers, NY
    Posts
    404

    Question Another ASP form question

    Hi again everyone!

    Here is what I would like to do (please view image attached):

    I have a form with one field in it. Once I put data in it and click the "Show Alarm/Access Codes" button, it should show all needed information on the same page below the form. Is this possible? If so, can anyone post some sample code or link me to a page that would have some code? Thanks in advance.
    Attached Images Attached Images  
    -vbuser1976
    VB6 Enterprise SP6
    SQL 7.0 SP2
    VBScript, HTML, Javascript, C++, a little UNIX

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Just have the same ASP page handle the form. If data is posted, fill out the info, if not, leave it blank.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Hyperactive Member vbuser1976's Avatar
    Join Date
    Sep 2000
    Location
    Yonkers, NY
    Posts
    404

    Unhappy Ok...

    Thanks for your help. I guess what I am trying to find out is if it is possible to create a OnSubmit_Click sub in VBScript like in VB?
    -vbuser1976
    VB6 Enterprise SP6
    SQL 7.0 SP2
    VBScript, HTML, Javascript, C++, a little UNIX

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    In javascript the button should have an "onClick=''" event...
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    New Member
    Join Date
    Jul 2001
    Location
    Saihat, Eastern Province, KSA
    Posts
    3

    You could do it! :)

    you dont have to bother about OnSubmit or OnClick.

    the form tag is like :
    <Form method=POST action="process.asp">
    ' In here you should have your
    </Form>

    what you need in your process.asp page is to check if the submit button was clicked assuming your button is named submit:
    IF Len(Request.Form("Submit")) then
    'open the connection and select the required record
    'assign the results to the variables you dimmed

    ELSE
    'Just display the form
    ' and the empty variables. (nothing displayd)
    END IF


    so as you see,
    you will open the connection and select the record only if it is needed.

    now,
    Power is within you, use your mind

  6. #6

    Thread Starter
    Hyperactive Member vbuser1976's Avatar
    Join Date
    Sep 2000
    Location
    Yonkers, NY
    Posts
    404

    Talking Thanks!

    Thank you all for your input. I will try all options.
    -vbuser1976
    VB6 Enterprise SP6
    SQL 7.0 SP2
    VBScript, HTML, Javascript, C++, a little UNIX

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