I searched through the forums and found quite a few simular matches, but none with the results I’m looking for…
Problem: When a user searches for something on google and it gives them the address to one of the pages on my site that happens to be in the center iframe, then the page loads without my main site, it only loads the iframe’d page. This is a big problem because then the users cannot access any of the sites features or navigation. I need a way to detect weather or not the main page is present from the iframed page.
Here is my site so you can see what I’m talking about:
[url]www.hlevolve.com
Example of problem:
Sample Search Result…
[url]http://search.yahoo.com/search?p=hlevolve+requests&prssweb=Search&ei=UTF-8&fr=FP-tab-web-t&fl=0&x=wrt
(Click the second link which should link you to: hlevolve.com/requests.php)
You see when you click that link (in the search results) that basically the entire site is inaccessable. You will notice I have added a line saying “The main website’s outer frame is not loaded, click here to load this frame now.” For this I was using PHP and passing a variable through the address, but this really isn’t a viable solution as I would have to change every link on my entire site to just about every page on the site.
Question: Is there a way that I can use javascript or something to automatically detect if the main page is present or not (Surrounding the framed page) from the iframed page. If it could auto detect it it would keep me from having to change so many pages, rather I could change around 15-20 pages rather than 3000+ links.
Thanks in advance :/