I use the following code to achieve dynamic iframe height:

In the <head>:


<script src="jquery-1.10.2.min.js"></script>
<script language="javascript" type="text/javascript">
function...