PDA

View Full Version : IFrame / Different Hosts Problem (DNS feature to the rescue?)...


lastfreedom
Apr-29-2007, 02:06 AM
Hello,

I've read a couple of posts regarding the use of iframes (i.e. you can't due to cookie and other security issues relating to the contents of the iframe or frame being on another host). However, I have also read somewhere that by updating my DNS record, I can have it look as if I'm hosting my smugmug galleries under my domain. Would this then allow me to use iframes and frames?

Thanks,

Matthew

P.S. The DNS stuff I refer to can be found in the help section; Help -> Professional Users -> Custom Host Name

Andy
Apr-29-2007, 05:28 AM
However, I have also read somewhere that by updating my DNS record, I can have it look as if I'm hosting my smugmug galleries under my domain. Would this then allow me to use iframes and frames?

No, I'm sorry, it won't. We don't much like frames here, what is your use requirement?

lastfreedom
Apr-29-2007, 09:55 AM
No, I'm sorry, it won't. We don't much like frames here, what is your use requirement?
Thanks for replying.

I would like to embed the gallery page within a table cell, the outer cells (edges) of which are made up of repeating backgrounds (and static corners) such that the gallery appears bordered. Using SmugMug's cobrand.mg page, I can effect this bordering at the top and bottom (at least I assume I can but have not tried yet), but I see no way to do the sides.

There might be a way of doing this using JavaScript to insert HTML. However, the way I have it right now is that the whole thing is quite liquid with the borders and logo resizing to fit pretty much any browser window size and I would hate to have to reinvent it all.

Thanks,

Matthew

Mike Lane
Apr-29-2007, 10:16 AM
Thanks for replying.

I would like to embed the gallery page within a table cell, the outer cells (edges) of which are made up of repeating backgrounds (and static corners) such that the gallery appears bordered. Using SmugMug's cobrand.mg page, I can effect this bordering at the top and bottom (at least I assume I can but have not tried yet), but I see no way to do the sides.

There might be a way of doing this using JavaScript to insert HTML. However, the way I have it right now is that the whole thing is quite liquid with the borders and logo resizing to fit pretty much any browser window size and I would hate to have to reinvent it all.

Thanks,

Matthew

Would you want something like this? http://northphoto2.smugmug.com/? I betcha you can get this effect without tables or frames :wink

lastfreedom
Apr-29-2007, 11:10 AM
Would you want something like this? http://northphoto2.smugmug.com/? I betcha you can get this effect without tables or frames :wink
Not quite, my borders remain within a certain distance of the browser window regradless of its size (an equivalent for you would be if the dark panel on your page grew and shrunk with the browser window).

Thanks,

Matthew

lastfreedom
Apr-29-2007, 11:33 AM
I think I got it. I had to insert some JavaScript into the footer HTML input box on the customize page (using the JavaScript input box this page did not work as getElementById() never returned anything for the IDs I provided). I ended up replacing the innerHTML of bodyWrapper with my own and then placing the original bodyWrapper HTML into a <div> tag I put in my own HTML.

:ear

Mike Lane
Apr-29-2007, 02:41 PM
Not quite, my borders remain within a certain distance of the browser window regradless of its size (an equivalent for you would be if the dark panel on your page grew and shrunk with the browser window).

Thanks,

MatthewThat page is a fixed width, but with one simple change to one line of the css, it is liquid.

lastfreedom
Apr-29-2007, 08:22 PM
That page is a fixed width, but with one simple change to one line of the css, it is liquid. What about the height, could that grow too?

Mike Lane
Apr-29-2007, 11:06 PM
What about the height, could that grow too?Yes. Though it is admittedly more tricky to do 100% window height or content height whichever is larger in CSS.

marks_digital
May-25-2007, 08:51 AM
The frames/iframes option would be a great feature only for the use of a menu tree. Here are two links for menu trees that use CSS + Javascript.
From using the tree it would be a very fast way to nav through Smugmug pages and galleries.

http://treemenu.nornix.com/
http://www.destroydrop.com/javascripts/tree/ :deal