473,386 Members | 1,679 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,386 software developers and data experts.

Help with reloading frame page please

Hi

My site uses frames and some of the frame pages are ranked higher in search
engine rankings than the main page. When somebody clicks on the link it takes
them to the frame page and they don't see my page as it should be viewed plus it
displays a javascript error.

I need a way using javascript so that when the link is clicked on in either
yahoo or lycos that it loads the main frame html page (not the subframe html)
and that the subframe html page is loaded into the correct frame within the
mainframe html page. Is this possible and how?

As ever any help greatly appreciated.

TIA
Dynamo

Jul 23 '05 #1
1 1423
Dynamo wrote:
My site uses frames and some of the frame pages are ranked higher in
search engine rankings than the main page. When somebody clicks on the
link it takes them to the frame page and they don't see my page as it
should be viewed plus it displays a javascript error.
Ah, the joy of using frames.
I need a way using javascript so that when the link is clicked on in
either yahoo or lycos that it loads the main frame html page (not the
subframe html) and that the subframe html page is loaded into the correct
frame within the mainframe html page. Is this possible and how?


Option 1: Minimise the damage caused by frames

1. Create a new <frameset> document for every combination of pages that
might be viewed at once.
2. Make sure each has suitable <noframes> content
3. Make sure all your links are target="_top" and point to a <frameset>
document.
4. Write a robots.txt that asks search engines to keep out of the directory
you keep the documents intended to be viewed in the frameset.

Then you might consider something like:

if(top.location == self.location){
top.location = "http://www.example.com/frameset_for_this_page/";
}

Option 2: Get rid of the frames and use preprocessing, server side
programing or simple includes to include the common content in each.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2

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

Similar topics

2
by: Ike | last post by:
Suppose I have two frames, as shown in the script below. One of the frames, I would like to have reload every ten minutes or so. Hower, the frame I wish to reload is a php script, which executes...
14
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
8
by: heather.memmel | last post by:
I am in no way a scripter/programmer of any kind but I am in charge of a number of online videos. Anyway I need help debugging my javascript which has been pieced together from several other...
1
by: purespam | last post by:
I have a index.htm page that loads a right frame and a main frame. In the right frame I have a menu(hvmenu). When I want to open a text file from my hd, I just click it in the menu. It opens in...
3
by: SpamProof | last post by:
If have a page with a frameset set up as below: There are 3 rows of pages displayed. I need the navigation to be in the middle. When I click on one of the links in the navigations, I need to...
1
by: Mad Scientist Jr | last post by:
How do you get a ASP.NET page to return nothing, so the page posting form data to it doesn't reload? I have tried all combinations of the following: Response.SuppressContent = True...
3
by: Richard | last post by:
Hey there, I have a textbox and a listbox. When a user types a number in the textbox, I want to get all the records from a MS Access DB but without reloading the page. I now have something...
1
by: Nigil LaVey | last post by:
I have a server configured for load balancing main server domain name is myserver.com and IP is 192.168.0.60 shadow server domain name is myserver.com and IP is 192.168.0.69 so if I keep on...
22
by: bevoldjling | last post by:
Hi ! I need some help in putting together a website for our family gathering. Although I'm still pretty "green", I don't think what I need requires terribly advanced skills ...except for one...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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...

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.