Solved

VBscript code for html form visibility

Posted on 2008-10-19
2
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

729 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