(e-mail address removed) a écrit :
what you have said is correct To reload a particular frame statically
with out any condition.
My requirement is When there occurs reload in the right frame,then
only left frame(treeview) should be loaded.
If it isn't reloaded in right frame how to tell something to left one ?
I don't know.
Try (not tested !) :
1) soluce 1
===========
In main framed page
a) in header :
<script type="text/javascript">
function surveyRight() {
parent.old = parent.old || parent.Right.location;
parent.new = parent.Right.location;
if (parent.new.toString() == parent.old.toString())
{
parent.Left.location = 'treeview.htm';
parent.Right.location = false;
}
else
parent.old = parent.new;
}
</script>
b) in frame 'Right'
<frameset ... >
<frame name="Right" onload="surveyRight()" ... >
2) soluce 2
===========
It is assumed only treeview opens pages
(and no links in right frame to reload same page)
In main framed page
a) in header :
<script type="text/javascript">
function lookOnRight(what) {
var old = parent.Right.location;
var new = what.href;
if (new.toString() == old.toString())
{
setTimeout(function(){parent.Left.location = 'treeview.htm';},50);
return false;
}
return true;
}
function addToLinks() {
var L = parent.Left.document.getElementsByTagName('A');
for(var i=0; i<L.length; i++ }
if(L
.href) {
if(L.onclick)
L.onclick += function() { return lookOnRight(this) }
else
L.onclick = function() { return lookOnRight(this) }
}
}
</script>
b) in frame 'Left' :
<frameset ... >
<frame name="Left" onload="addToLinks()" ... >