Actually I have 2 questions. The first: is this mailing list about
Ruby on Rails or Prototype? The list address according to Google
Groups is named "Ruby on Rails: Spinoffs"...

My real question: I'm generating a few nested DIV elements, setting
styles on these, and then attaching to the document. The style rules
are defined in a STYLE section of the head, and work as expected in
Firefox. However in IE, some of the styles do not show up until I drag
the newly created DIV (which is Draggable).

Any thoughts?

Here's a snippet:

        var playlistItem = $(document.createElement('div'));
        playlistItem.id = params.mediaID;
        playlistItem.addClassName('playlistItem');

        var dragger = $(document.createElement('div'));
        dragger.addClassName('playlistDragger');

        var title = $(document.createElement('div'));
        title.addClassName('playlistItemTitle');
        title.update(params.mediaTitle);
        title.onclick = function() {
                PopupPlayer.playItem(params);
        }

        var metaData = $(document.createElement('div'));
        metaData.addClassName('playlistItemMetaData');
        metaData.update("Artist, YYY, ...");

        var deleteButton = $(document.createElement('div'));
        deleteButton.addClassName('deleteButton');
        deleteButton.update('x');
        deleteButton.onclick = function() {
            PopupPlayer.removeItem(playlistItem.id);
        }

        playlistItem.appendChild(dragger);
        playlistItem.appendChild(deleteButton);
        playlistItem.appendChild(title);
        playlistItem.appendChild(metaData);
        $('playlist').appendChild(playlistItem);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to