|
|
Subject:
Website frames problem, html
Category: Computers > Internet Asked by: andrewxmp-ga List Price: $5.00 |
Posted:
24 Jul 2003 08:47 PDT
Expires: 23 Aug 2003 08:47 PDT Question ID: 234626 |
I only know basic html but have a website that actually has a large number of people searching for it. The problem, it seems, is that it was designed to only be accessed from a single gretting page. www.badassbluejays.org is the greeting page so to speak, and then this brings you to www.badassbluejays.org/main.htm, which is basically a very simple page that creates the two frames seen [/side.htm and /home.htm]. I don't really know much about frames, I used a crappy html does-it-for-you program to set this up a long time ago, but this is the way it's set up. Unfortunatly, if people search for the site, only the "home.htm" page comes up, and people can't access the navigation frame! For example, the searches: [ ://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=johns+hopkins+cross+country+and+track ] (second link listed) or [ ://www.google.com/search?hl=en&ie=ISO-8859-1&q=badassbluejays ] but obviously it is not the same nor complete webpage as if one followed the link from the greeting page. Is there any way to fix this problem short of completely getting rid of frames/ redesigning my site? I would be willing to change around the frame titles or page/site structure. I can also supply the source code to the main.htm page because i know that might help and is currently unviewable. Thanks. PS- please disregard the fact that the site gets redirected to http://IPaddress:81/ I had to host the site someplace else while I'm out of school for the summer. The redirection, however, should have no implications for this question nor the site content itself. Thanks. |
|
Subject:
Re: Website frames problem, html
Answered By: robertskelton-ga on 24 Jul 2003 15:05 PDT Rated: |
Hi there, A simple piece of JavaScript will do the job for you. I found it at DMXZone: http://www.dmxzone.com/ShowDetail.asp?NewsId=2870 ------- Question: How can I prevent a framepage from being viewed outside of its frameset ? Answer: Insert this javascript in the head tags of all the framepages you don't want to be viewed out of the frameset. <script language="javascript"> <!-- if (top == self) self.location.href = "NAME OF MAIN FRAMESET PAGE"; //--> </script> Just set your frameset pages with this code and when a framepage is loaded in the browser while not part of a frameset it will redirect to your main frameset page or the page you specify. --------- So, put this code in the <HEAD> section of home.htm <script language="javascript"> <!-- if (top == self) self.location.href = "main.htm"; //--> </script> Search keywords: javascript "out of the frameset" Best wishes, robertskelton-ga |
andrewxmp-ga
rated this answer:
Simple and does the trick. Thanks! |
|
Subject:
Re: Website frames problem, html
From: slawek-ga on 24 Jul 2003 09:45 PDT |
Good Day andrewxmp, I have a work around that might interest you: Place a link in the home.htm with a caption something like "If you don't see the navigational menu on the left hand side, click here". You can than reload the page any way you want to. I can not think of any other solution that is so easy, and works 100% of the time. Please let me know if this will do the trick and I will post it as an official answer. Regards, slawek-ga |
Subject:
Re: Website frames problem, html
From: andrewxmp-ga on 24 Jul 2003 10:22 PDT |
Thank you for your suggestion. I will not be able to implement this little trick until this evening when I have access to the host computer. I will get back to you about it though. Thanks! |
Subject:
Re: Website frames problem, html
From: haversian-ga on 24 Jul 2003 10:46 PDT |
If you are willing to use javascript, there is a way to check to be sure the navigation frame exists, and if not to redirect your users to the proper page. I saw the script on some website, but if that would be an acceptable answer for you, I will go look for it for you. |
Subject:
Re: Website frames problem, html
From: andrewxmp-ga on 24 Jul 2003 11:27 PDT |
A javascript workaround would be just fine (as long as you let me know how to actually implement it). I use the newest version of Apache as my webserver, if that matters. Thanks! |
Subject:
Re: Website frames problem, html
From: haversian-ga on 25 Jul 2003 16:37 PDT |
Yup, that's the one! Good job robertskelton. -Haversian |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |