soumik
09-15-2005, 04:55 AM
hi to all,
i hav one inline frame. the scrolling property of the iframe is "no" by default. what i want for a specific page it turns into "yes". so what i'm doing is targeting the iframe by id and changing the scrolling properties of it.. .. but it does not seem to be working properly. here is the code
<script language="JavaScript" type="text/JavaScript">
function scroll() {
parent.document.getElementById("iframe").scrolling='yes';
}
</script>
iframe id=mid
width=100%
height=100%
i'm calling the function on body load of a html which is going to load inside the iframe, thts why i had started with .parent so that it goes one up level, since the main iframe(mid) is located in the up level page.
i dont hav any problem when i apply the same code with the "width" property of the iframe, where the code is
function scroll() {
parent.document.getElementById("mid").width=400;
}
however, i want the code to modify the scrolling properties, not the widh....
if anyone has got any idea about the problem, i'm begging for it.. i need that to happen very badly...
thanx in advance..
soumik
i hav one inline frame. the scrolling property of the iframe is "no" by default. what i want for a specific page it turns into "yes". so what i'm doing is targeting the iframe by id and changing the scrolling properties of it.. .. but it does not seem to be working properly. here is the code
<script language="JavaScript" type="text/JavaScript">
function scroll() {
parent.document.getElementById("iframe").scrolling='yes';
}
</script>
iframe id=mid
width=100%
height=100%
i'm calling the function on body load of a html which is going to load inside the iframe, thts why i had started with .parent so that it goes one up level, since the main iframe(mid) is located in the up level page.
i dont hav any problem when i apply the same code with the "width" property of the iframe, where the code is
function scroll() {
parent.document.getElementById("mid").width=400;
}
however, i want the code to modify the scrolling properties, not the widh....
if anyone has got any idea about the problem, i'm begging for it.. i need that to happen very badly...
thanx in advance..
soumik