I am using JQuery UI to allow the user to resize divs using a video player. This is a piece of code:
<script type="text/javascript"> $(function(){ $("#stream").resizable({ containment: "#content", minHeight: $('#content').height(), maxWidth: ($('#content').width() / 1.3) }); }); </script> <div id="stream"> </div>
This works as expected when the page is displayed. The problem is that I fire an event that changes the contents of the div "#stream":
#('#stream').html(<--!Code for another video player-->);
After that, the size controls disappear, and even if I call $("#stream").resize() again does not seem to work.
Am I doing something wrong or do I need to use some kind of work?
source share