469,352 Members | 2,154 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

framed page: possible to update more then one frame after asp-query ?

Hello,

I am wondering if one could do following.

I have a main frame with 3 subframes ("top", "left" and "contents")
I have a link in the left frame, someting like:
<a href="test.asp?Mypath=/multimedia/images/">images</a>

When clicking the link in the left frame, the page "test.asp" is displayed
in the "contents" frame, with parameter MyPath displayed correctly

Now I also want to update the top-frame, so MyPath is displayed there too.

So my question is:
How can I update several frames in a framed page, by clicking just one link?

tia

bartp
--
==============================
Bart Plessers
Artabel
Schreursvest 67
3001 Leuven
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
web: http://www.artabel.com
==============================

Jul 19 '05 #1
1 2340
So, you have frames in frames? Nice. That doesn't matter. Just use one
page for your frame layout, or keep it as two the way you have it. You can
still do the same thing. You'll just have to pass more paths in the
querystring.

Ray at work


"Bart Plessers (artabel)" <ba**********@hotmail.com> wrote in message
news:dA**********************@amsnews02.chello.com ...
thanx ray for quick reply.
If I understand you correctly,

the default.asp is a frame with two subframes,
so the full html code of default.asp would be

<frameset rows="100,*" cols="*" framespacing="0" frameborder="YES"
border="10">
<frame src="folder1/main_top.asp" name="mainFrame">
<frame src="folder1/main_bottom.asp" name="bottomFrame" scrolling="NO"
noresize>
</frameset>

where "folder1/main_top.asp" can be modified by use of querystrings.
This of course can easily be done.
But my problem is that the 2 frames are NOT both subframes of one frame set.
Here is my layout:

MAINFRAME=
-top (header)
-contents (contains subframes LEFT and RIGHT, see below)
-bottom (footer)

CONTENTS=
-left (list of links)
-right (actually displaying contents of links)

Now I have a link on "left"
What I want to achieve is updating "TOP" and "RIGHT" by clicking on link in "LEFT", but TOP is not of the same 'frame-level' as RIGHT
In fact:
TOP is frame of MAINFRAME and
RIGHT is frame of CONTENTS wich is frame of MAINFRAME
In your method, the only way is to update MAINFRAME with the querystrings of LEFT, but then LEFT will be updated to (I don't want this because position
of page view changes...)
any other suggestions?
tia

bart


--
==============================
Bart Plessers
Artabel
Schreursvest 67
3001 Leuven
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
web: http://www.artabel.com
==============================

"Ray at <%=sLocation%>" <ra*@ajf8jalskdfna.sefrhja7yasdf.com> wrote in
message news:Oy**************@TK2MSFTNGP11.phx.gbl...
<A

href="default.asp?frame1=/dir/page.asp&frame2=/otherdir/page.asp">click</a>

default.asp:

<frame1 src="<%=Request.querystring("frame1")%>">
<frame2 src="<%=Request.querystring("frame2")%>">

Ray at home

"Bart Plessers (artabel)" <ba**********@hotmail.com> wrote in message
news:Zk**********************@amsnews02.chello.com ...
Hello,

I am wondering if one could do following.

I have a main frame with 3 subframes ("top", "left" and "contents")
I have a link in the left frame, someting like:
<a href="test.asp?Mypath=/multimedia/images/">images</a>

When clicking the link in the left frame, the page "test.asp" is displayed in the "contents" frame, with parameter MyPath displayed correctly

Now I also want to update the top-frame, so MyPath is displayed there too.
So my question is:
How can I update several frames in a framed page, by clicking just one

link?

tia

bartp
--
==============================
Bart Plessers
Artabel
Schreursvest 67
3001 Leuven
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
web: http://www.artabel.com
==============================



Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mac Davis | last post: by
3 posts views Thread by Jamal | last post: by
34 posts views Thread by Charles Douglas Wehner | last post: by
5 posts views Thread by Erik Meyer | last post: by
1 post views Thread by Christopher | last post: by
1 post views Thread by ksuralta | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.