Solved

Redirect content in a new frame?

Posted on 2004-09-02
7
211 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_
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now