Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Calendar field on my form
Old 10-19-2011, 09:47 PM Calendar field on my form
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
Hey!

I need to make a calendar field on my form. Putting in a date manually is fine. But I need the next field to have a restricted thing on it. So if someone puts the date of October 19, 2011 they cannot enter another date with more then 7 days after without getting an error.

Can someone help me with this?

Thanks.
bdg1115 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-19-2011, 09:49 PM Re: Calendar field on my form
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Do you want to do the validation client side or server side? If you want to do it client side you'll need to use javascript. Even in this case you should verify the input server side as well. What language are you using?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-19-2011, 09:53 PM Re: Calendar field on my form
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
Javascript would work..
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-19-2011, 09:57 PM Re: Calendar field on my form
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
I am using Javascript.
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-19-2011, 09:57 PM Re: Calendar field on my form
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Moved to the JS forum.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-19-2011, 10:03 PM Re: Calendar field on my form
Extreme Talker

Posts: 201
Name: Brian
Trades: 0
Thanks.
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 01-06-2012, 06:07 AM Re: Calendar field on my form
Experienced Talker

Posts: 43
Trades: 0
123 Contact Form generator can easily render you the calendar field and the code, then set the calendaristic date range in the way described here: http://stackoverflow.com/questions/7...range-is-valid
reganstar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Calendar field on my form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.84651 seconds with 12 queries