473,699 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1437
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_th is_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
2158
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 and creates a png image which gets displayed directly to the browser frame (therefore, the image is NOT written to the server itself, and the page that gets displayed in the frame I wish to update is a png image mime type). How can I amend my...
14
2154
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 Frame (File LeftEx8_2.html) a series of buttons, which when clicked prompt the user to enter information for background color, text color, link color, title and some text.
8
1418
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 posts/people in relation to the topic of reloading two frames from a link in a image map. Here is the code it doesn't work, Please Help! You can check out the live page at http://www.maddash.net/videos/oakwood
1
1683
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 the main frame. But now the menu isn't working anymore. Apparently, you need a javascript command in the main frame, as in every page I want to open to make it work. With a txt file that seems rather hard. So, to work around this, I can just click...
3
1098
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 be able to dictate a new source page for the top row AND the bottom row. How can I do this without refreshing/reloading the middle page with my nav?
1
8023
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 Response.BufferOutput = True Response.Cache.SetNoStore()
3
2154
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 manual and a user first must press a button to get the listbox filled with records but I want to have it done automaticly without pressing a sumbit button. I know its prolly done with javascript but thats one thing
1
1307
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 reloading a page or just trying to access to page, will Figure 2 comes into scene where Top Frame IP for Figure 2 is 192.168.0.69? cos load balacing is the one that designate the target source when server is having massive traffics Please Advise,
22
5119
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 area that has me right baffled. I want to put up a photo album slideshow but I want to stay away from Flash & Javascript. It just seems that anytime I use them, somebody
0
8689
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9178
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8885
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.