473,322 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1511
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
5
by: Bart Schelkens | last post by:
Hi, I have this website that consists of 2 frames. In my leftFrame I have a button that performs some actions. In my rightFrame I display a table or some textboxes. I the action of the button...
2
by: Charles | last post by:
I need some ideas about how I can handle people that bookmark a page in my forms authentication web site. The main page of this web site has four frames, a header, footer, left side (used for a...
15
by: rover8898 | last post by:
Hello all, I used setjmp() in a recent of program of mine (it is not completed, so I have not the chance to test it out yet). I am not very profocient in C coding as are some of my co-workers....
4
by: srinpraveen | last post by:
I badly want to know if there is a way in javascript to just a create a variable and increment it each time a particular visits the page. In other words, I want to use this as a counter for counting...
2
by: Francesco | last post by:
Hi there! I'm trying to organize my sources into a webroot tree like this, webroot index.htm - only contains index.php into a frame index.php - require_once('inc/layout.php') ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.