setting dynamic height from ajax content
I got the latest versions from SVN today. My previous method of
determining the height of the data returned isn't working now, but I'm
not sure I ever did it the best way before.
I need to get the title from the server and the data, so I have this
(though I don't think it's the most efficient):
$('#example6').dialog({autoOpen: false, width: 400, autoResize:true,
modal: true, overlay: { opacity: 0.5, background: 'black' }});
function openADialog(image){
$('#example6').load('playbook.lasso', function(){
var height = $('#example6').innerHeight() + 100;
$.get('playbook.lasso?_method=title', function(info){
$('#example6').data("title.dialog", info).data("height.dialog",
height);
});
$('#example6').dialog('open');
});
}
<button onclick="openADialog();">Open</button>
anyone have suggestions as to the best way to go about this?