View Full Version : Please help test my Force Frame functionality????
bettyfordclinic
5-29-02, 08:37 PM
I created a set lists section for my site a while back, using "good old" frames!!! Of course, the worst thing is when search engines access a page outside of it's frameset, so I included a "force frame" scriptm which loads the page into it's preoer frameset.
On a mac though, it can jam the frameset on the frame you've chosen, so if folks want to help me see if it works on different OS's and Browsers, that would be great. Just go to the first link below, the page will load, then jump into it's frameset. AFTER it's loaded into the set, try one of the links on the left. There's a chance that it will work fine, but there's a chance it will load the page and then go back to the forced frame with no way out.
here's the test link (www.fantasyjackpalance.com/fjp/sound/setlists/14-they-might-be-giants.html)
here's the page working normally (http://www.fantasyjackpalance.com/fjp/sound/setlists/)
Many thanks!!!
bfc
(ps - I must learn and use SSI, I must and use learn SSI)
Hmmm... each link brings up the same "giants in London" in the right hand frame using IE 6 on a Windows PC.
It also does the same using Netscape 4.79 on a Windows PC.
Not what your "normal" page does, that's for sure.
Yup, you need to learn SSI ;)
It's not that hard to figure out SSI, if I can help just let me know.
Just my "For What It's Worth"
Are you using javascript to do the frame redirect? There are quite a few CGI scripts that will accomplish the same thing and work much better. Here's a direct link to some over at hotscripts:
http://www.hotscripts.com/Perl/Scripts_and_Programs/Redirection/Frame_Based/
Hope this helps!
bettyfordclinic
5-30-02, 08:43 AM
Well that's all I need to hear. The old script is going.
Manninc, I've downloaded a script from the link you put up (my plan b was the javascript source!!!) and will probably post in a new link when everything's in place.
Thx all!!!
bfc
(time is the SSI barrier, that and being too comfortable with frames....:))
bettyfordclinic
5-30-02, 02:12 PM
Well,
This should be working fine now. Here are a couple more examples:
the force frame test (http://www.fantasyjackpalance.com/fjp/sound/setlists/09-suede-set-list.html)
the normal frameset (http://www.fantasyjackpalance.com/fjp/sound/setlists/index.html)
and I did my tickets section too!!!
the force frame test (http://www.fantasyjackpalance.com/fjp/sound/tickets/data/40pulp.html)
the normal frameset (http://www.fantasyjackpalance.com/fjp/sound/tickets/index.html)
The script I used actually came from a google search. I had a look at the perl script first suggested, but I'm more scared of perl than I am of java, so went after a java script on google.
The script I found was from http://www.webmasterworld.com/, and it was actually a post that someone had then modified further (the modification made the browser's back button work as if no funny reloading stuff had happened). I'm now going to explain how the script works, in case anyone else is interested.
This bit goes in the head of the orphan page. The "INSERT YOUR NEW FRAME DOCUMENT'S URL HERE" bit will point either relatively or directly at the page created from the code below (read on). Be sure to LEAVE IN the question mark (?) after the "INSERT YOUR NEW FRAME DOCUMENT'S URL HERE" bit. It's part of the script.
<script LANGUAGE="JAVAscript" TYPE="TEXT/JAVAscript">
<!-- HIDE script FROM OLDER BROWSERS
var passpage = document.URL
if (top.location == self.location) {
top.location.replace('INSERT YOUR NEW FRAME DOCUMENT'S URL HERE?' + passpage);
}
//-->
</script>
Then you have to make a new document based on the frameset code of your existing frameset. This document is the bit that gets pointed at from the orphan page. Essentially all you need in the entire document is this:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Your title</title>
</head>
<script language="JavaScript" type="text/javascript">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('
<frameset rows="110,*">
<frame src="my-frame-1.html" name="my frame name 1">
<frame src="' + contentURL + '" name="my frame name 2">
<\/frameset>')
</script>
</html>
As you can see, this is for two frames, and the orphan page would load into the second one (<frame src="' + contentURL + '" name="my frame name 2">). Just change the names, urls, and all the other frame elements so that they match your original frameset doc and then save it. This means that a more complicated three frame page with no borders and resize code could look like this:
document.write('
<frameset rows="110,*,110" border="0" frameborder="no" bordercolor="#ffffff" MARGINHEIGHT="1" MARGINWIDTH="1">
<frame src="my-frame-1.html" name="my frame name 1" scrolling="no" noresize>
<frame src="' + contentURL + '" name="my frame name 2">
<frame src="my-frame-3.html" name="my frame name 3" noresize scrolling="no">
<\/frameset>')
This was a cool script. Particulary since all I had to do was create the new java frameset page, and then do a find and replace on my </head> element with the replace slipping the script in before it. I did my tickets section (44 pages) in about 4 seconds flat!!!!
bfc
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.