SimpleModal Dynamic Form and Animation
I basically want to have a simplemodal object that acts as a panel that loads in the middle of the screen. I want to click a button and have almost a replicate panel animate out the side of this panel and reposition the entire container to the middle of the screen. To implement this I basically tried to create a table with the original  panel in the first <td> element and the other in another <td> element. I set the one I don't want visible with to not display and it's width to 0.


    Ticket.prototype.bindAddButton = function() {
        var ticketRef = this;
        this.$add.click(function() {
            $('#modalcontainer').animate({
            width: 560
            })
            $('#otherContainer').show();
            $('#otherContainer').animate({
            width: 280
            })
        })
    }

This doesn't work well at all. The original container width doesn't change. The fields in the other panel show up but they just are off to the side and not formatted correctly at all.

Please advise.




SimpleModal Dynamic Form and Animation
===

I basically want to have a simplemodal object that acts as a panel that loads in the middle of the screen. I want to click a button and have almost a replicate panel animate out the side of this panel and reposition the entire container to the middle of the screen. To implement this I basically tried to create a table with the original  panel in the first <td> element and the other in another <td> element. I set the one I don't want visible with to not display and it's width to 0.


    Ticket.prototype.bindAddButton = function() {
        var ticketRef = this;
        this.$add.click(function() {
            $('#modalcontainer').animate({
            width: 560
            })
            $('#otherContainer').show();
            $('#otherContainer').animate({
            width: 280
            })
        })
    }

This doesn't work well at all. The original container width doesn't change. The fields in the other panel show up but they just are off to the side and not formatted correctly at all.

Please advise.



