Solved

VBscript code for html form visibility

Posted on 2008-10-19
2
494 Views
Last Modified: 2012-05-05
I am beginner in vbscript and trying to use it in html forms.  I wish to make entry a particular form invisible for entries after a deadline.  In the same html documents, I have other information that users can see.
I am attaching the code that is not working. Can anyone help.

<html>
<head>
<script language="vbscript">
sub hello()
dim xyz
set xyz=document.frmform1
if date() > #9-30-2008# then
msgbox "This is after Sep 30 2008. Entry time is over"
xyz.visbile=false
else
msgbox "Please make the entries"

end if
end sub
</script>
</head>
<body onload="hello()">

<form name="frmform1">

<input type="text" name="fld1">
<input type="text" name="fld2">
</form>
</body>
<html>
Thanks
Srinivas
0
Comment
Question by:smanthanims
2 Comments
 
LVL 16

Accepted Solution

by:
sh0e earned 50 total points
ID: 22751322
xyz.style.visibility="hidden"
0
 

Author Closing Comment

by:smanthanims
ID: 31507539
Thank you so very much. I got the solution within 10 hours after posting the question.  I could not find the solution in more than 4 books on ASP and HTNML.  Thank you once again
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
If condition on Html with Asp 11 27
Writing comments on <p></P> or paragraph 2 19
Html Table Looping (part 2) 5 27
Insert Button on a table 16 36
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question