HI There, Yes the new element is being inserted later ( $ (dropZoneCount.id).appendChild(newCopy);)....that's all working fine....i only posted the relevant code....the bit of code when it was working and then the same bit of code with the extra code taht breaks the script. Can you see anything wrong with it?
On Jul 1, 4:13 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote: > I don't see where the new element is being inserted into the document. Is > there code we're missing? > > -Fred > > On Tue, Jul 1, 2008 at 10:08 AM, elduderino <[EMAIL PROTECTED]> > wrote: > > > > > Hi, > > > I had this code: > > var newCopy = new Element('div', { 'id' : obj.id, 'class' : > > 'de_small' }).update(obj.innerHTML); > > > which worked fine but now i add this and it breaks my script...it's > > hard to explain exactly how it breaks but it involves a draggable > > object not being droppable anymore > > > var newCopy = new Element('div', { 'id' : obj.id, 'class' : > > 'de_small' }).update(obj.innerHTML).observe('click', deleteThis()); > > > can i not do it like this? > > -- > Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---