Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBscript code for html form visibility

Posted on 2008-10-19
2
Medium Priority
?
514 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:Srinivas Mantha
[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 200 total points
ID: 22751322
xyz.style.visibility="hidden"
0
 

Author Closing Comment

by:Srinivas Mantha
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

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

715 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