Solved

Redirect content in a new frame?

Posted on 2004-09-02
7
216 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

724 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