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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi