Results 1 to 7 of 7

Thread: A VBScript Question...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Using 'Document.Write', I can get something displayed on a webpage, but it clears the webpage completely. Is there anyway to preserve the webpage and add info to it? Also, is there a way to have a text box that the user cannot input data to?

  2. #2
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    Try:
    VBScript Web Site

    ------------------
    r0ach(tm)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    Thanks, but I still can use the "document.write" without clearing everything that's already on the page. How do I fix this?

  4. #4
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    Example:
    Code:
    <HTML>
    <HEAD>
    <TITLE>Hello world.</TITLE>
    </HEAD>
    <BODY BGColor=#000000 Text=#FF0000>
    This is a test
    <FONT Face=Tahoma Size=5 Color=#00FF00>
    <Script Language="VBScript">
        document.write("Hello world.")
    </Script>
    </FONT>
    </BODY>
    </HTML>
    This example does NOT clear away all the text!

    ------------------
    r0ach(tm)

  5. #5
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    If you want your user not to input data, why to use a Text Box???????

    1- Use a label instead, you can set BackColor etc. to resemble a Text Box

    2- Put a TextBox but set "enabled" property to false

    3- Put a TextBox and set "locked" property to true

    4- Put a label on top of your Text Box with that caption:
    "FORBIDDEN TO INPUT DATA HERE! - SEVERE PUNISHMENTS!"


    [This message has been edited by Juan Carlos Rey (edited 01-17-2000).]

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    By text box, I meant a webpage textbox. NOT a VB text box... monkey...

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    As far as I know, the only form elements which the user cannot edit are hiddens. If you need the box to be seen, maybe you could replicate the look of a text box using a single cell table? It might take a bit of trial and error to get it look right, but it's the only way I can think of.

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