On 4/25/06, Joseph Annino <[EMAIL PROTECTED]> wrote:

> - Repeat a set of html code and inserts it as the innerHTML of an
> element

> Maybe because
> after the repeating of the HTML, elements temporarily have the same id.

Never insert something into the DOM that results in IDs not being
unique. The browsers have to fall back into some recovery mode for
this error, the behaviour with duplicate IDs is undefined,
idiosyncratic and any hack is not future-proof. Avoid the situation.

You seem to loop after the insertion to change the ID. Either change
the IDs beforehand, or insert without IDs and set them on the loop.

Bye,
  Martin
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to