I'm trying to resize the width of fancybox (v1.3), but I don't know how to do this. The width should change after I receive dynamic content with a jQuery ajax request. The height is resized automatically. Can someone help me with this?
<!-- Fetch action lines of an action -->
<script type="text/javascript">
$('#actionType').change(function() {
var actionTypeId = $(this).children(":selected").attr("id");
$.ajax({
type: "POST",
cache: false,
url: "/ajax/actionLines.php",
data: {actionTypeId: actionTypeId},
success: function(data) {
$("#actionBlock").html(data);
}
});
});
</script>
You must call the update function after putting in the content.
$.fancybox.update();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With