There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell drive driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound sprtcmd.exe trojan usb virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
adjusting force frames script


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
houseworksux's Avatar
Senior Member with 206 posts.
 
Join Date: Oct 2003
Location: Canada
Experience: Intermediate
03-Feb-2004, 07:05 AM #1
adjusting force frames script
Hello
I have a website built in frames (cannot change)
I have added the following script to the pages to force frames (individual pages displayed on google)
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (parent.location.href == self.location.href) {
window.location.href = 'index.htm';
}
// End -->
</script>

Two questions
1. When you access one of the pages, the entire frameset does indeed display. However, if the user hits the back button it redisplays the page and you have to use the browser drop-down-back to get out of it.
Is there a way to adjust the script so that they can indeed go Back?

2. Should I put NO INDEX/NO FOLLOW on all of the pages except the frameset?

Thanks kindly
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
05-Feb-2004, 11:37 PM #2
Not totally sure what you want, but..

Here is an old example I have.

http://home.tbbs.net/shadow/hardforu...xhtmlframe.htm

If you load main.htm, top.htm or menu.htm separately, it will force xhtmlframe.htm

The links in the menu target the main frame.

If you click back, main.htm will reload in the main frame.

The script in xhtmlframe wasn't finished, but was to allow for links that would load a certain site in main.

Ignore the title of the web page. (it's not php)
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run
Shadow2531's Avatar
Distinguished Member with 2,629 posts.
 
Join Date: Apr 2001
06-Feb-2004, 12:16 AM #3
Just for kicks here's the query string version.

http://home.tbbs.net/shadow/hardforu...xhtmlframe.htm

You can test the force frames part with these URIs.

http://home.tbbs.net/shadow/hardforu...frame2/top.htm
http://home.tbbs.net/shadow/hardforu...rame2/menu.htm
http://home.tbbs.net/shadow/hardforu...rame2/main.htm

You can test the javascript query string function with this URI.

http://home.tbbs.net/shadow/hardforu...www.google.com

If a validator could process dyanamic html created by javascript, then everything would be compliant besides the one frameset border attrbute. Of course if you try to validate it the way it is, it would throw lots of errors because the frameset code is writtin via javascript if javascript is turned on.

Again, not sure what you need, but the examples should help.
__________________
10 ? "a line as the unending horizon"
20 ? "a curve as the rolling hillside"
30 ? "a point as a distant bird"
40 ? "a ray as the rising sun"
run

Last edited by Shadow2531 : 06-Feb-2004 12:24 AM.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:22 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.