943,590 Members | Top Members by Rank

Ad:
Jul 17th, 2008
0

i need a help!!!

Expand Post »
did anyone know how to make a calendar by using javascript? actually i want to put calendar next to text field, so that, the user can easily select the date and the date will come out in the text field......help me plzzz.....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asyieen is offline Offline
11 posts
since Jul 2008
Jul 17th, 2008
0

Re: i need a help!!!

Put the attached folder in the folder in which your application resides. Then Insert the following javascript above the code for your form.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
  2. <script type="text/javascript" src="calendar/calendar.js"></script>
  3. <script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
  4. <script type="text/javascript" src="calendar/calendar-setup.js"></script>

Then put the following code just after the code in form where you are making textbox for calendar.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. &nbsp;<img src="images/ew_calendar.gif" id="id of field" alt="Pick a Date" style="cursor:pointer;cursor:hand;">
  2. <script type="text/javascript">
  3. Calendar.setup(
  4. {
  5. inputField : "id of date field", // ID of the input field
  6. ifFormat : "%Y/%m/%d", // the date format
  7. button : "button id" // ID of the button
  8. }
  9. );
Attached Files
File Type: zip calendar.zip (388.9 KB, 5 views)
Last edited by Tekmaven; Jul 17th, 2008 at 5:27 am. Reason: Code tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gargg321 is offline Offline
21 posts
since Jun 2008
Jul 17th, 2008
0

Re: i need a help!!!

Hey find this attachment...
Its simple and fine...
Attached Files
File Type: zip calender.zip (5.9 KB, 5 views)
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Shanti C is offline Offline
1,641 posts
since Jul 2008
Jul 18th, 2008
0

Re: i need a help!!!

to shanti....thanks for ur attachment and info.....but, i got a problem...when i click on the date, the date will not reside the text field.....here, the attachment....the page come out on the calendar....why is that happened? i'll send u my coding.....
Attached Files
File Type: php createproject.php (5.5 KB, 2 views)
File Type: doc printscreen.doc (277.0 KB, 2 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
asyieen is offline Offline
11 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: iPlayer Scrolling Images and Text
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: popup window not working in javascript





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC