I've integrated an external php-Script within my site by using the iframe-solution:
Code: Select all
<script type="text/javascript">
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
theFrame = document.getElementById('iframename');
h = theFrame.contentDocument.body.scrollHeight;
theFrame.style.height = h+15;
}else if(document.all) {
h = window.frames.iframename.document.body.scrollHeight;
document.all.iframename.style.height = h+15;
}
}
</script>
Everything works fine for the 'first' page. But when you click a link to the details page of any training, the iframe doesn't recalculate it's height (of course?). So you end in a grey area and have to scroll upwards first before you see the information...

(try it yourself: click the "Informationen & Anmeldung" link for any item near the end of the page (e.g. GV-13/06)).
Since i'm not very experienced with javascript, can anyone help pls?
Thanks so far
Gunnar