Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Redirect content in a new frame?

Posted on 2004-09-02
7
Medium Priority
?
218 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 1000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

609 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