Please the following cricket world cup schedule page...
Depending on the selection, the number of items (matches) that display in the cell titled "Schedule" varies. You may click any link under Team/Venues/Matches see the functionality.
One of the <a> tags for example is...
<a href="#" ONCLICK="document.getElementById('HTMLfile').innerHTML='<iframe width=100% height=320 marginwidth=0 marginheight=0 frameborder=0 src=/WC/schedule_zz.html></iframe>';return false;">Australia</a>
Here I have set height=320. Depending on the selection, this has to vary for the list to be centered in the cell.
How can I set the height of the iframe so that it dynamically adjusts based on the number of item in the displaying html?
Thanks
Arun
Depending on the selection, the number of items (matches) that display in the cell titled "Schedule" varies. You may click any link under Team/Venues/Matches see the functionality.
One of the <a> tags for example is...
<a href="#" ONCLICK="document.getElementById('HTMLfile').innerHTML='<iframe width=100% height=320 marginwidth=0 marginheight=0 frameborder=0 src=/WC/schedule_zz.html></iframe>';return false;">Australia</a>
Here I have set height=320. Depending on the selection, this has to vary for the list to be centered in the cell.
How can I set the height of the iframe so that it dynamically adjusts based on the number of item in the displaying html?
Thanks
Arun