Solved

Redirect content in a new frame?

Posted on 2004-09-02
7
210 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
Comment Utility
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_
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:morpheous_
Comment Utility
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_
Comment Utility
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
Comment Utility
Glad it helped! Sorry for the syntax error, it was the VB syntax instead of C#.
0
 

Author Comment

by:morpheous_
Comment Utility
yeah, used to it :-) (error)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

763 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

11 Experts available now in Live!

Get 1:1 Help Now