469,903 Members | 2,287 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

about frames

I have two frames in a frameset.Left frame has treeview.Right frame has
the aspx pages w.r.t nodes of treeview control.

When i perform some operation in the right frame, left frame(treeview
control) should also be reloaded(refreshed) along with the right frame
using javascript.

Oct 28 '06 #1
5 1369
ASM
su**********@gmail.com a écrit :
I have two frames in a frameset.Left frame has treeview.Right frame has
the aspx pages w.r.t nodes of treeview control.

When i perform some operation in the right frame, left frame(treeview
control) should also be reloaded(refreshed) along with the right frame
using javascript.
Yes, and ? ... what is the question ?
Oct 28 '06 #2

ASM wrote:
su**********@gmail.com a écrit :
I have two frames in a frameset.Left frame has treeview.Right frame has
the aspx pages w.r.t nodes of treeview control.

When i perform some operation in the right frame, left frame(treeview
control) should also be reloaded(refreshed) along with the right frame
using javascript.
Yes, and ? ... what is the question ?
how could i do this?????????

Oct 28 '06 #3
ASM
su**********@gmail.com a écrit :
ASM wrote:
>su**********@gmail.com a écrit :
>>I have two frames in a frameset.Left frame has treeview.Right frame has
the aspx pages w.r.t nodes of treeview control.

When i perform some operation in the right frame, left frame(treeview
control) should also be reloaded(refreshed) along with the right frame
using javascript.
Yes, and ? ... what is the question ?

how could i do this?????????
Do what ? to reload a page ? in a specific frame ?
- parent.myFrame.reload();
- parent.myFrame.location = 'myFile.htm';
- self.location = 'myFrame.htm';
and so one

What does TreeView explain to you ?
Perhaps could you ask to its author or read his FAQ ?

Without knowing treeview how to imagine what to tell to him ?
With 2 frames (menu + viewer)
usual double link in menu is made this way :

<a href="page1.htm" target="leftFrame"
onclick="self.location='menu1.htm';">page one</a>

where 'leftFrame' is the *name* of frame to display the page (page1.htm)

--
ASM
Oct 28 '06 #4


On Oct 28, 6:43 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
sudidelar...@gmail.com a écrit :
ASM wrote:
sudidelar...@gmail.com a écrit :
I have two frames in a frameset.Left frame has treeview.Right frame has
the aspx pages w.r.t nodes of treeview control.
>When i perform some operation in the right frame, left frame(treeview
control) should also be reloaded(refreshed) along with the right frame
using javascript.
Yes, and ? ... what is the question ?
how could i do this?????????Do what ? to reload a page ? in a specific frame ?
- parent.myFrame.reload();
- parent.myFrame.location = 'myFile.htm';
- self.location = 'myFrame.htm';
and so one

What does TreeView explain to you ?
Perhaps could you ask to its author or read his FAQ ?

Without knowing treeview how to imagine what to tell to him ?

With 2 frames (menu + viewer)
usual double link in menu is made this way :

<a href="page1.htm" target="leftFrame"
onclick="self.location='menu1.htm';">page one</a>

where 'leftFrame' is the *name* of frame to display the page (page1.htm)

--
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.
so how will u do that.
ASM
Oct 29 '06 #5
ASM
su**********@gmail.com a écrit :
>With 2 frames (menu + viewer)
usual double link in menu is made this way :

<a href="page1.htm" target="leftFrame"
onclick="self.location='menu1.htm';">page one</a>

where 'leftFrame' is the *name* of frame to display the page (page1.htm)

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 ?
so how will u do that.
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[i].href) {
if(L[i].onclick)
L[i].onclick += function() { return lookOnRight(this) }
else
L[i].onclick = function() { return lookOnRight(this) }
}
}
</script>

b) in frame 'Left' :

<frameset ... >
<frame name="Left" onload="addToLinks()" ... >

--
ASM
Oct 29 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

40 posts views Thread by JohnnyCJohnny | last post: by
25 posts views Thread by Steal | last post: by
5 posts views Thread by Dfenestr8 | last post: by
7 posts views Thread by dj Bass | last post: by
5 posts views Thread by Bart Schelkens | last post: by
15 posts views Thread by rover8898 | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.