By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,911 Members | 1,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,911 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.