PDA

View Full Version : Frameset opener script malfunctioning


marilynn.fowler
08-15-2002, 09:06 PM
I have a <body> page with a series of buttons. I have a <frameset> page with two frames: the top frame contains the menu and the bottom frame (named "brettpages") has the changing content. I'm trying to open a <frameset> page with the proper page loaded in one of the frames. When I view my documents in Netscape I get a gray screen with a broken Quicktime symbol. Where are the flaws in my code?

this is the script I have in the <Head>:

//Function to open gallery with proper pages
function Gimme(url) {
self.location="gallery.html?"+url
}

This is the HREF I have on the button:

<A HREF="javascript:Gimme('contact.html');">
<IMG SRC="shared/menu7a.jpg" WIDTH="375" HEIGHT="35" BORDER="0" ALT="Contact Info" NAME="contact"></A>

joh6nn
08-15-2002, 10:46 PM
can we see the page you're doing this on? i know what the code you're using is ( i wrote the frame_saver() function ), but it's easier for us to see what's wrong when we can get a look at all the code as it is on the page.

marilynn.fowler
08-15-2002, 11:01 PM
The server for this site is being upgradeded, so here's a temporary staging area where I've uploaded the modified files:

http://www.vicesbyproxy.com/staging/brett/index.html

Because of time considerations I only uploaded a few HTML pages and the index page images, so any subsequent pages will have broken links where the images are. (If you wanted to look at the actual site, it's at www.brettkaufman.com)

thank you for taking a look at the code.

joh6nn
08-16-2002, 12:07 AM
ok, you don't need that gimme function at all. If you just link to the pages normally, they won't load in the frameset, so the frame_saver() function will kick in, put them in the frameset, and you'll be all set.

marilynn.fowler
08-17-2002, 08:13 AM
Again, you are my hero! Thanks. I haven't tried it yet, but it sounds logical.