Are you adding a table row? If so, the createElement method does not
work for tablerows in IE. Look at for example: insertRow methods which
have been described in the MSDN.

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380

------------------------------------------------------------------------
------------------------------------------------------------------------
-----
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep. 
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl 
------------------------------------------------------------------------
------------------------------------------------------------------------
-----

-----Original Message-----
From: Damien McKenna [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 25 februari 2005 17:03
To: CF-Talk
Subject: OT: Dynamic form fields & calendars

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>
 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196550
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to