Hi,

I have the code below, when I put it directly in the html, I am able to drag
and drop into it.
When I try to add it dynamically, and I look in Firebug, the added column is
identical with what I added manually in the html, yet, it will not allow me
to drag and drop into it.

Are the sortable initialized some other ways? Please how to fix that?

                        $('#add_column').live('click', function() {
                        var selectedTab = 
document.getElementById("selectedtab").value;
                        var ct = $('#columns').children().size() +1; 
                        var w = number_format(100/ct, 1);
                        $('#columns').append('<div class="column" 
id="column'+ct+'" style="width:
+w+%; -moz-user-select: none;" unselectable="on"></div>');
                        $('#column'+ct).addClass("ui-sortable");        
                        $(".column").each(function(){
                        $(this).width(w+'%');
});     

Thank You.
-- 
View this message in context: 
http://www.nabble.com/Dynamically-Adding-Portlets-Columns-tp25017763s27240p25017763.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to