i need a help!!!

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jul 2008
Posts: 11
Reputation: asyieen is an unknown quantity at this point 
Solved Threads: 0
asyieen asyieen is offline Offline
Newbie Poster

i need a help!!!

 
0
  #1
Jul 17th, 2008
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.....
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 21
Reputation: gargg321 is an unknown quantity at this point 
Solved Threads: 0
gargg321 gargg321 is offline Offline
Newbie Poster

Re: i need a help!!!

 
0
  #2
Jul 17th, 2008
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. );
Last edited by Tekmaven; Jul 17th, 2008 at 5:27 am. Reason: Code tags
Attached Files
File Type: zip calendar.zip (388.9 KB, 2 views)
Commitment is what transforms a promise into reality. It is the words that speak boldly of your intentions. And the actions which speak louder than the words. It is making the time when there is none. Commitment is the stuff character is made of; the power to change the face of things. It is the daily triumph of integrity over skepticism.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,076
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: i need a help!!!

 
0
  #3
Jul 17th, 2008
Hey find this attachment...
Its simple and fine...
Attached Files
File Type: zip calender.zip (5.9 KB, 2 views)
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 11
Reputation: asyieen is an unknown quantity at this point 
Solved Threads: 0
asyieen asyieen is offline Offline
Newbie Poster

Re: i need a help!!!

 
0
  #4
Jul 18th, 2008
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, 0 views)
File Type: doc printscreen.doc (277.0 KB, 0 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 645 | Replies: 3
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC