Solved

Redirect content in a new frame?

Posted on 2004-09-02
7
215 Views
Last Modified: 2008-03-10
Hello,

I have two windows.

First window has three frames (leftFrame, topFrame, mainFrame).
Second window has two frames (topFrame, bottomFrame).

I would like, first window frame (mainFrame) link (when clicked) to be opened in a second window frame (bottomFrame).

Filenames for both window1 (window1.aspx) and (window2.aspx, are defined.

here's an walktrough:
when user clicks a link located in window1.aspx the file called window2.aspx should be called and open a clicked content with parameters in it's own bottomFrame.

links in a window1 look like:

file.xml#83525

when user clicks a link, I would like to send this content (file.xml#83525) to window2.aspx bottomFrame.


How do I achieve that ?

Thanx,

-Michael PG
0
Comment
Question by:morpheous_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:chipple
ID: 11961185
First you must give a name to the target frame, for example:
  <frame src="window2bottomframe.aspx" name="win2bottom" ... />

Then, use the defined name in the target attribute of your link:
  <a href="file.xml#83525" target="win2bottom">Link</a>

You should get this to work easily!
0
 

Author Comment

by:morpheous_
ID: 11961426
Yes, but how do I open window2 at the same time that contains both frames (topFrame, bottomFrame) ?
Window2 is not opened at the time user clicks on the link in Window1.

I need to show complete window2 with bottomFrame data in it (file.xml#83525).

I think that you missunderstood the question, can you please try to draw it on the paper so
you can understand what I mean?

When user clicks a link in Window1.aspx, file with name file.xml#83525 should open window2.aspx
and show up in bottomFrame.

this is content of window2.aspx:

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="mm_max_top.aspx" name="topFrame" scrolling="NO" noresize >
  <frame src="mm_max_bottom.aspx" name="bottomFrame">
</frameset>

<noframes>
<body>
</body>
</noframes>



0
 
LVL 4

Accepted Solution

by:
chipple earned 250 total points
ID: 11961474
So the link (located in window1.aspx) opens a window displaying window2.aspx and passing it a parameter of the filename to be displayed in bottomFrame?

In window1.aspx:

<a href="window2.aspx?bottom=file.xml%2383525">Open window</a>

In window2.aspx:

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="mm_max_top.aspx" name="topFrame" scrolling="NO" noresize >
  <frame src="<%=Request.QueryString("bottom")%>" name="bottomFrame">
</frameset>

Or am I missing something else?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:morpheous_
ID: 11961656
Yes, that's what I am after, but I receive following error:

Compiler Error Message: CS0118: 'System.Web.HttpRequest.QueryString' denotes a 'property' where a 'method' was expected
0
 

Author Comment

by:morpheous_
ID: 11961671
Oh, it was the syntax.
It should look like:

<frame src='<%=Request.QueryString["bottom"]%>' name="bottomFrame">

Big Thanx!
0
 
LVL 4

Expert Comment

by:chipple
ID: 11962037
Glad it helped! Sorry for the syntax error, it was the VB syntax instead of C#.
0
 

Author Comment

by:morpheous_
ID: 11962082
yeah, used to it :-) (error)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstrap Form 16 40
Use Mid in Html 6 22
Accordion won't close correctly 5 14
what should i learn? javascript or typescript? 3 37
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question