Click to See Complete Forum and Search --> : A VBScript Question...
Phobic
Jan 15th, 2000, 02:49 AM
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?
r0ach
Jan 15th, 2000, 03:03 AM
Try:
VBScript Web Site (http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/default.htm)
------------------
r0ach(tm)
Phobic
Jan 15th, 2000, 05:15 AM
Thanks, but I still can use the "document.write" without clearing everything that's already on the page. How do I fix this?
r0ach
Jan 15th, 2000, 05:38 AM
Example:
<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)
Juan Carlos Rey
Jan 16th, 2000, 11:18 AM
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).]
Phobic
Jan 16th, 2000, 01:18 PM
By text box, I meant a webpage textbox. NOT a VB text box... monkey... :)
HarryW
Jan 16th, 2000, 04:01 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.