By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,954 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,954 IT Pros & Developers. It's quick & easy.

HOW TO force to load a frameset?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.