In the following code, you will see that i'm calculating the date to insert into a URL and sending that info to my iFrame. This part of my code works great. My next task is to find the scroll height of the content in the URL and send that to the iFrame in order to dynamically change the height of the iFrame based on the content height.
My question: How do i grab the URL content scroll height and pass the info along to the iFrame?
<script langauge="javascript" src="
<script language="javascript">
var $j=jQuery.noConflict();
$j(document).ready(function()
{
var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
curr_month++;
var curr_year = d.getFullYear();
var formattedDate= curr_month + "/" + curr_date + "/" + curr_year;
$j("#myiframe").attr("src"," + "BeginDate=" + formattedDate + "&EndDate=" + formattedDate");
});
</script>
<iframe id="myiframe" scrolling="no" frameborder="0"></iframe>
My question: How do i grab the URL content scroll height and pass the info along to the iFrame?
<script langauge="javascript" src="
<script language="javascript">
var $j=jQuery.noConflict();
$j(document).ready(function()
{
var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
curr_month++;
var curr_year = d.getFullYear();
var formattedDate= curr_month + "/" + curr_date + "/" + curr_year;
$j("#myiframe").attr("src"," + "BeginDate=" + formattedDate + "&EndDate=" + formattedDate");
});
</script>
<iframe id="myiframe" scrolling="no" frameborder="0"></iframe>