Just as a side measure that you are probably not aware of... IE8 has a bug that when you do your new Element(td..,'class':'text'...
It will not add the class to IE8 browsers ... you need to use addClassName('text'); after you insert it... I found this out the hard way ! Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: "molo" <maurice_lowent...@ssga.com> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Monday, October 26, 2009 7:27 PM Subject: [Proto-Scripty] onChange in Dynamic Element not working in IE6 > > > The following code works in Firefox but the onChange/onBlur events do > not get triggered from the browser in IE6 > > Does anyone know > 1) How to fix this > 2) If I should use a different approach for dynamically building the > form elements > > > I dynamically build elements on the screen base on a button being > entered to call a function > > var newSecurityTdInput = new Element('td' , {'class':'text'}); > var newSecurityInput = new Element('input', {'type':'text', > 'class':'text newid', 'name':'newid', 'onChange': > "validateNewSecurityChange(this);" ,'onBlur': "getSecurityName > (this);"}); > > > newSecurityTdInput.appendChild(newSecurityInput); > newSecurityTr.appendChild(newSecurityTdInput); > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---