I'm working on a calendar project for work, as mentioned previously.
I've been toying with JS & CSS to do the event editor and the part I'm
stuck on is how to dynamically add jscalendar buttons.  IE just doesn't
like me doing what I do, so I've been trying to get it working in
Firefox first.
 
In case you haven't used jscalendar before, you simply link in a few JS
& CSS files, add a text field (to store the date) and button (to launch
the calendar popup) and the following JS:
 
Calendar.setup(
  {
    inputField : 'date'+eventCount,
    ifFormat : "%m%d%y",
    button : 'date'+eventCount+'_button'
  }
);
 
The 'eventCount' part dynamically links to dynamically created text
fields & buttons named e.g. date1 and date1_button respectively.
 
I've got a button that says "add another date" which creates a new date2
text field and date2_button button then runs the JS above with the new
names.
 
The problem is that after adding a new row only the new row's calendar
button works, the others stop working.
 
I thought it was because I had multiple calendars on the same page, but
I have another (static) page that has three calendars on it, and they
all work just fine.
 
Any ideas what I should look for, or failing that, anyone have a
suggestion on something else for me to try?
 
Thanks.
-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
The Limu Company - http://www.thelimucompany.com/
<http://www.thelimucompany.com/>  - 407-804-1014
#include <stdjoke.h>
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196545
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to