Try creating your element this way, which is a new feature of
Prototype 1.6.
$(document.body).insert(new Element("div", { id: params.mediaID,
class:'playlistItem', onclick:'alert("moo")' }))
I'm not sure it will make any difference but it's worth a try.
On Dec 21, 10:07 am, Jason Boyd <[EMAIL PROTECTED]> wrote:
> Ah, new evidence: the elements are correctly styled, but it's when I
> then do a Sortable.create() on the containing DIV that for some reason
> the styles stop being rendered, only to reappear when I drag the newly
> added DIV. What's weirder, since I make this call each time,
> effectively destroying the existing Sortable and re-creating with one
> more element in the list, is that it's only the newly added element
> that gets rendered funny (and only in IE(7)).
>
> I also tried doing
>
> setTimeout(function() { Sortable.create(...); }, 1000);
>
> All this does is confirm its the Sortable call that is doing something
> odd. The element shows up correctly styled, and one second later, the
> styling disappears. This includes background-color, border, and some
> layout, though the text is all correctly styled.
>
> I should add, this is Scriptaculous 1.8.0 with Prototype 1.6.0. I'll
> go check the Scriptaculous support areas too.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---