473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Targetting the frameset from the address bar

Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
Pete
Aug 15 '06 #1
2 1706
Put this in the HEAD section of the subframe pages that people could try to
load without the main frameset page:

<SCRIPT LANGUAGE="JavaScript">
<!--

if (top.location.href.indexOf("frameset.aspx") == -1)
top.location.href = "frameset.aspx";

// -->
</SCRIPT>

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pierre" wrote:
Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
Pete
Aug 15 '06 #2
Thanks a lot Peter

After a dummy test with frameset I finally got what I need with your answer.

Regards,

Pete
"Peter Bromberg [C# MVP]" wrote:
Put this in the HEAD section of the subframe pages that people could try to
load without the main frameset page:

<SCRIPT LANGUAGE="JavaScript">
<!--

if (top.location.href.indexOf("frameset.aspx") == -1)
top.location.href = "frameset.aspx";

// -->
</SCRIPT>

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pierre" wrote:
Hello fellows,
I have a Web application using frameset and frames. When I click in a
hyperlink button I can send the selected aspx page using the "target"
attribute into the selected frame. However when the aspx page is called from
IE address bar the page is loaded into the entire browser and not into the
frame I would like to. I tried to use the target attribute of the attribute
form but it does not work.
I noticed that when the page is called from the address bar the content of
"Request.UrlReferrer" is null but I do not find how to send this page into
the desired frame programmatically.
It would be appreciated if anybody knows how to redirect the page into the
frame.
Thanks in advance
Pete
Aug 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dan (dj74) | last post by:
Hi All, my application looks like this: (file index.php) application = new MyApplication(); application->run(); //all code of the application is in MyApplication class and other
3
by: Tim Wallace | last post by:
I have a frameset with a nested frameset, like follows: frameset frame frameset frame frame Now, my problem is that even though I set the border, frameborder and framespacing to zero, I...
12
by: MP Multimedia | last post by:
Hello everyone, I need help. I'm using a hierarchical menu made in javascript. When I used it in a one frame page, it came out fine. But now I need to change my page to 3 frames: a top frame,...
1
by: E.J.M. Fakkeldij | last post by:
Hello, I'm rather new in javascript programming. I have a frame: <frameset framespacing="0" border="0" rows="47,*" frameborder="0"> <frame name="banner" scrolling="no" noresize...
5
by: David Shorthouse | last post by:
Hey folks, I have IIS running on a dynamic IP so have had to make use of www.dyndns.org to make sure that a call to the site's WWW address will make it to the appropriate IP. There is an option...
1
by: Bongolation | last post by:
I've looked in the FAQ and didn't see anything on this. There must be a simple solution to this VERY common problem: A site featuring many text articles and archives has a frameset of two...
1
by: mark.martinez2 | last post by:
Here's my problem: It is necessary to have people enter in direct links to pages on my site, which is frame-based, but when they go to any page that isn't the home page, the frameset doesn't load,...
0
by: SATISD9X | last post by:
Hi, I have a frameset page named FramePageA which calls another frameset page on a hyperlink click named FramePageB. Now this FramePageB is a page which has got login authentication which pops up...
25
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.