PDA

View Full Version : frame load event problem



pankaj.ghadge
10-23-2008, 05:58 AM
hello ,
suppose i have two frame left.html and right.html

<frameset cols="15%, *" id="fs1">
<frame src="left.html" name="left" frameborder="1" id=leftId>
<frame src="right.html" name="right" frameborder="1" id=rightId>
</frameset>

is there any way so that i will come to know that right hand side frame is loaded. on the left hand side frame i want to know that right hand side frame is loaded. right hand side frame contains gets reload every time when we click on link. so every time left hand side frame must know that right hand side frame is loaded

so how come it is possible..........
Please let me know.........................

rangana
10-23-2008, 06:09 AM
On left.html:


<script type="text/javascript">
window.onload=function(){
if(parent.frames['right']) // If parent.frames['right'] already loaded
alert('Right frame already loaded'); // Show the message
}
</script>

pankaj.ghadge
10-23-2008, 06:28 AM
But the right frame will get reload each time when i will click on link present in right frame.
and every time i want to know that (in left frame) right frame is loaded...........................