473,574 Members | 2,272 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 1434
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
2152
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...
14
2135
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...
8
1414
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...
1
1679
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...
3
1093
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...
1
8015
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
2146
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...
1
1302
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...
22
5108
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...
0
8044
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. ...
1
7810
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8096
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...
0
6451
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5618
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...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3749
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2240
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
0
1056
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...

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.