PDA

View Full Version : Using framesets - how smugmug handles them


meatloaf
Jun-19-2007, 06:49 AM
I looked in this forum but couldn’t find an answer.

On my original base site (on hosted server), I am working on a new layout for my site. It will incorporate a frameset - 2 frames, a top frame (for static logo and navbar) and a bottom main frame (noted in the code as ‘mainframe’) for indexes and gallery display.

I want to have my logo and navbar in the topframe because it will change from time to time.

The mainframe will start as an index page with links to my various galleries. Some of these galleries reside on Smugmug and others reside on other servers.

In the HTML, these individual galleries are directed to appear in the mainframe, replacing the index page.

Here is my problem,
When I am clicking on a link for a gallery that is on another server, the gallery appears properly in the mainframe leaving the top frame static (as it should).

BUT when I click a link (on the same index page) that takes me to a Smugmug gallery, the Smugmug gallery overtakes the parent window, replacing the frameset, thus losing the header and navbar.

This link is testing the index page - no frames
http://www.southfloridafreepress.com/galleryindex.html

By clicking on "Concert Gallery", this will take users to the frames page.
http://www.southfloridafreepress.com/galleryframe.html

There are 2 active linke on this frames page.
1. click RUSH - will go to another server (PostPix) and the gallery opens in the main frame and all navigation in the main frame stays there. This is what i want to happen
2. click GODSMACK - and a Smugmug gallery (some hockey pics, not Godsmack) will open, but this gallery consumes the parent page, losing frames, logo and navbar. This is not what i want.


Any suggestions or tell me why this happens?
Thanks - Ted

BeachBill
Jun-19-2007, 09:10 AM
Smugmug breaks out of frames because they break things like passwords and the shopping cart (http://www.dgrin.com/showpost.php?p=216627&postcount=10).

Also, Smugmug allows you to disable the frames-breaking code (http://www.dgrin.com/showpost.php?p=217000&postcount=20) if you understand the problems associated with using a frames-based page.

Follow the two links above for more details. I found those posts by doing a search of dgrin. Hope this helps!