473,396 Members | 1,724 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.

Help please redirecting frame pages using php

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 php 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 17 '05 #1
3 1643
Dynamo wrote:
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.
Frames are evil. :-)

I need a way using php 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?
Yes, but I think you better use Javascript instead of PHP.
Your problem is this: People click on a hyperlink that points to a certain
html-file (or PHP file).
Then the page is fetched and delivered into the browser.
The browser should now check to see if the requested page is in a frame as
it should.

You can start your html-pages (or html generated by PHP) with certain checks
to see if there are frames present.

But try reposting this question to a javascript newsgroup for more
information. (comp.lang.javascript)

Regards,
Erwin Moller


As ever any help greatly appreciated.

TIA
Dynamo


Jul 17 '05 #2
In article <42***********************@news.xs4all.nl>, Erwin Moller says...

Dynamo wrote:
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.
Frames are evil. :-)

I need a way using php 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?

Yes, but I think you better use Javascript instead of PHP.
Your problem is this: People click on a hyperlink that points to a certain
html-file (or PHP file).
Then the page is fetched and delivered into the browser.
The browser should now check to see if the requested page is in a frame as
it should.

You can start your html-pages (or html generated by PHP) with certain checks
to see if there are frames present.

But try reposting this question to a javascript newsgroup for more
information. (comp.lang.javascript)

Regards,
Erwin Moller


As ever any help greatly appreciated.

TIA
Dynamo

OK Thanks for that. I'll try posting messgae in javascript newsgroup. And yes I
know that frames are evil but having just achieved number 1 rankings for my site
I am reluctant to make any major changes.
Regards
Dynamo

Jul 17 '05 #3
In article <d9*********@drn.newsguy.com>, Dynamo <Dy***********@newsguy.com>
wrote:
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 php 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.


1. Stop using frames. :)

2. Your problem can't be solved with PHP since each frame loads an individual
PHP script (or html document) that are unaware whether they are inside a frame
or not.

The only way is to use JavaScript, that is executed by the browser itself,
which is the only application that knows the constellation of frames.

--
Sandman[.net]
Jul 17 '05 #4

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

Similar topics

2
by: quitaxe | last post by:
hi i am facing this problem when i redirect to a asp page using - Response.redirect "mynext.asp" the problem is that the current page is using frames so this mynext.asp is also getting loaded...
2
by: TeknoCat | last post by:
Hey everyone, I may be repeating myself here, but if someone sent a reply then I missed it, and I can't get Outlook Express to download any messages more than 2 days old. Anyway, I'm having a...
5
by: PaulThomas | last post by:
Working with XP-Pro and VS.Net I have set my Start Page to "Home.aspx" but the application always starts the "Login" page - - - How can I change the start page to the Home.aspx??? On the login...
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
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...
1
by: Bilbo | last post by:
Hello, How do I programatically redirect a page in "another frame" using C# in ASP.NET? Server.Transfer redirects the current page...not a different frame. Thanks.
5
by: Etienne Charland | last post by:
Hi, I have a simple problem that doesn't seem to have an easy solution. I have a popup used in many places in the application. At the top of the page, there is a link to switch between two views of...
2
by: Steve K | last post by:
I got a bit of a problem I like some help on. I'm designing an online training module for people that work in food processing plants. This is my target audience. These workers have little or no...
9
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...
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.