Ask a Question related to ASP Database, Design and Development.
-
Allyn Jefferies #1
VBScript - Hide Text Field
I am trying to hide a text field using VBscript
***
if firstname = "test" Then
msgbox ("hello")
form.txtlastname.visible = fales
end if
***
The message box appears correctly if I enter test, but I am unable to
hide the textfield. I've tried a million different things, would
appreciate it if some one could point me in the right direction.
thanks
Allyn J
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Allyn Jefferies Guest
-
Hide/show field and its label in flash form
I was able to hide the textbox using _visible=false but the label continues to show. Also, is there such thing as in CSS using display to not only... -
Radio btn makes text field equal value of different text field
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The... -
Help. I need a Script to Hide field if field equals zero
I have a calculated field that I want to hide if it equals zero. Can anyone help? Thanks, Ken -
Can't hide Input Text field, please help
Hello all, In one of my frames, I have Dynamic and Input Text fields. Say that I have the Title1(Dynamic) and EMail(Input) fields. If I use the... -
can you hide scroll bars on a scrolling text field?
thanks! I love simple solutions like that. Ned wrote: -
Bob Barrows [MVP] #2
Re: VBScript - Hide Text Field
Allyn Jefferies wrote:
This is client-side code and as such, has nothing to do with asp. Please> I am trying to hide a text field using VBscript
>
> ***
> if firstname = "test" Then
> msgbox ("hello")
> form.txtlastname.visible = fales
> end if
> ***
>
> The message box appears correctly if I enter test, but I am unable to
> hide the textfield. I've tried a million different things, would
> appreciate it if some one could point me in the right direction.
>
follow-up on a dhtml or scripting newsgroup, where dhtml questions such as
this are routinely handled.
Your problem is that you did not realize that you were dealing with another
object model that is separate from the vbscript object collection, and
therefore failed to read the "document object model" documentation which is
freely available at [url]http://msdn.microsoft.com/library[/url], or at a myriad of
other websites which can be found by a Google search for DOM, DHTML, or
"Document Object Model". The documentation will reveal that INPUT elements
(as well as all the other DOM objects) have no "visible" property. Instead,
they have a style object, one of whose properties is called "visibility",
the details of which can be found here:
[url]http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/visibility.asp[/url].
form.txtlastname.style.visibility="hidden"
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows [MVP] Guest
-
Allyn Jefferies #3
Re: VBScript - Hide Text Field
Bob,
thanks for that, works like a dream.
Allyn J
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Allyn Jefferies Guest



Reply With Quote

