473,231 Members | 2,024 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,231 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 1634
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.