1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    82
    Vote Rating
    0
    jacstofberg is on a distinguished road

      0  

    Default Add existing div to panel (not with "contentEl" property)

    Add existing div to panel (not with "contentEl" property)


    Hi there,

    I'm currently using "contentEl" to add an existing div (a jplayer div) to my panel. The problem is that I do not want it to be appended to the very end of my panel html, but would like to insert it inbetween other elements.

    How would I add an existing div element to my panel at a specified location? [e.g. like "panel.insert(index, element);" does]

    This would be most useful.

    Thanks,
    Jac

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    82
    Vote Rating
    0
    jacstofberg is on a distinguished road

      0  

    Default SOLVED

    SOLVED


    Instead of setting the panel's contentEl property to "jp_container_1", I just added my "Audio Buttons" div into the panel using the standard panel insert method:

    Code:
    myPanel.insert(index,{html: ..., id: "AudioButtons");
    I then just inserted the existing div before the "AudioButtons" div by using the following code:

    Code:
    var existingDiv = document.getElementById("jp_container_1");
    var audioButtons = document.getElementById("AudioButtons");
    audioButtons.parentNode.insertBefore(existingDiv,audioButtons);
    Seems to work fine

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar