CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Date Input using Popup Calendar Only

Print topic Send  topic

Author Message
Ken Hardwick
Posted: 06/14/2002, 1:38 PM

Using ASP...I would like to setup a date field on a update/insert form in which the date can only be entered thru the use of a popup calendar.

Any suggestions...thanks..Ken
Nicole
Posted: 06/15/2002, 2:41 AM

Ken,
may be it makes sense to use Hidden field or readonly textbox...
Ken Hardwick
Posted: 06/15/2002, 8:17 AM

Well I was able to figure out a way to do this ...
I found and figured out a way to use...onFocus=this.blur()
in conjunction with a popup calendar

Made date_assigned a label/html field...
and added date_assignedH as a hidden field for same database field.

then in show event...
'converts to 4-digit year
flddate_assigned = my_date_format(flddate_assigned , 2)

flddate_assigned = "<INPUT TYPE=""text"" NAME=""date_assigned"" SIZE=""10"" value=""" & flddate_assigned & """ onFocus=""this.blur()"">"

Then in before Insert/Update events...
added...

flddate_resolvedH = GetParam("date_resolved")

Download link for this ccs file is listed in my popup calendar article.
http://www.gotocode.com/artPreview.asp?art_id=156&








   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.