Solved

VBscript code for html form visibility

Posted on 2008-10-19
2
500 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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