473,396 Members | 2,010 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,396 software developers and data experts.

HOW TO force to load a frameset?

Hi, all
I try to explain (with my #@^^~ english..., sorry...) :
I have a page e.g. Product125.htm

I would that, if a guy call

http:\\www.MySite.htm\Products\product125.htm

to force the load of the "normal" frameset to provide a "normal" menu at the
left of the screen...

Thanks
--
Olivier (enlever les 3X pour la réponse)
Jul 20 '05 #1
3 7421
Add this code into the HEAD of your page (product125.htm):

<script language="JavaScript">
if (top == self) {document.location = "urlofmyframeset"}
</script>

"BlackSabbath" <so**********@no.spam.in.hell> wrote in message
news:3f**********************@news.free.fr...
Hi, all
I try to explain (with my #@^^~ english..., sorry...) :
I have a page e.g. Product125.htm

I would that, if a guy call

http:\\www.MySite.htm\Products\product125.htm

to force the load of the "normal" frameset to provide a "normal" menu at the left of the screen...

Thanks
--
Olivier (enlever les 3X pour la réponse)

Jul 20 '05 #2
BlackSabbath wrote:

Please direct your attention towards:
http://www.allmyfaqs.com/faq.pl?How_to_post
Now I open the frameset but I would obtain :
open the frameset WITH the right page (product125.htm) in the right
frame...


You have product125.htm as the value of the src attribute of the <frame> tag
in the <frameset> document.

Not using frames is a better solution, they cause many problems.
http://david.us-lot.org/www/frames/

--
David Dorward http://david.us-lot.org/
Jul 20 '05 #3
Thank
I tried
In the page recherche.htm :
<head><title>La Fenêtre de Recherche</title>
<link rel="stylesheet" href="medor.css">
<script language="JavaScript">
if (top == self) {document.location = "medor.htm?recherche.htm"}
</script>
</head>
....
and medor.htm , the frameset with :

<html><head><title>Médor</title></head>
<script language="JavaScript">
var pageD = "general.htm"
var docu = document.location.search
if (document.location.search != "")
{pageD =document.location.search.substr(1,(document.locat ion.search.length -
1))}
</script>
<frameset cols="30%,*">
<frame name="menu" src="menu.htm" scrolling="no" frameborder="no">
<frame name="detail" src=pageD frameborder="no" >
<noframes><body></body></noframes></frameset></html>

it's failed....
(so sorry for my poor level in 1/english 2/HTML, it'snt my cup of tea...)

--
Olivier (enlever les 3X pour la réponse)
"Markus Ernst" <de******@yahoo.com> a écrit dans le message de news:
3f**********@news.bluewin.ch...

Now I open the frameset but I would obtain :
open the frameset WITH the right page (product125.htm) in the right

frame...


You can try something like:

<script language="JavaScript">
if (top == self) {document.location = "urlofmyframeset?produkt125.htm"}
</script>

and in the page that loads normally in the frame:

<script language="JavaScript">
if (document.location.search != "") {
document.location =
doocument.location.search.substr(1,(document.locat ion.search.length - 1))
}
</script>

I have not tested this, it could be buggy, but you see the principle.

--
Markus

Jul 20 '05 #4

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

Similar topics

2
by: vk | last post by:
I have a situation where I have 3 frames. The first frame is dynamic and contains javascript variables for use throughout the frameset page and the other frames. Everything works fine...except...
2
by: Mike Preece | last post by:
Hi I have to apologise for this in advance.. Sorry I know this is the wrong group to ask but this question I don't know where I should be asking it. What can I send from the server to a...
2
by: Clay Harryman | last post by:
I've found a script that will force-load index.html. It is below: (thanks to the authors!) <!-- Hide script from old browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This...
2
by: Mark Kamoski | last post by:
Hi-- I need a code sample of how to redirect from an ASP.NET page to a frames-based html page and specifying what should load in the destination's frames. Any ideas? (Even air-code is much...
1
by: GarryJones | last post by:
I have an existing website at www.scfmotion.se I have now activated a blogg tool which has placed the blogg section at blogg.scfmotion.se. I want to force users to click on a link on...
1
by: venkikam | last post by:
Hi Everyone, Currently I have frameset like <frameset framespacing="2" border="0" frameborder="0" rows="129,*,32" > <frame name="top" scrolling="no" noresize target="contents"...
2
by: dmc2409 | last post by:
Well, I am more a desigber than developer. Need to solve the folloving problem. I have a page on, lets call it Firstserver. It opens Page1, Page2 and Page3 on Secondserver through a frame on the...
12
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
6
by: Thiago Macedo | last post by:
I could not find on the web a complete solution for this task. This is not the perfect solution, because it's doesn't have the ability to log the logout if browser crash or user leave it open while...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.