Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > Javascipt calendar > Feedback
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

View Poll Results: Is the CalendarHelper.js Object Helpful
Yes 0 0%
No 0 0%
Undecided 0 0%
Voters: 0. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2007, 03:55 PM
janthony janthony is offline
Junior Member
 
Join Date: Oct 2007
Posts: 1
Default Submitted OO Approach

I liked your code for it's light weight approach, but being an American I needed a different date format. While I was doing this, I refactored it into an object oriented approach. It's not perfect, but it might be useful to someone.
Below is an example of an implementation:

HTML Code:
<input type="text" value="mm/dd/yyyy" id="Start_Time" name="Start_Time" /> <input type="text" value="mm/dd/yyyy" id="End_Time" name="End_Time" /> <script src="CalendarHelper.js"></script> <script> var calendarObj = new CalendarHelper(); calendarObj.add('Start_Time'); calendarObj.add('End_Time'); </script>
Attached is the code:
Attached Files
File Type: txt CalendarHelper.js.txt (13.2 KB, 159 views)
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:14 PM.