PDA

View Full Version : a new (?) iframe question


oxy8384
Jun-02-2007, 08:10 PM
I hate iframes, too, just so we're clear.:D But...... I would like to use a 1px by 1px iframe (style="display:none; overflow: hidden;") as the target for some forms that call a PHP script on my non-smugmug site. I use this method to keep my email address out of my HTML pages.

Of course, I learned this technique back in my ultra-noob days and have never revisited it. Maybe I should just use javascript and the user's local mail client...?

BTW, I am a little fuzzy on the cryptic warnings about the use of iframes. Is it a SmugMug (security) policy violation to use them? Or isi it just a bad idea (for all the reasons I've read about outside SmugMug)? Is there something specific about how SmugMug works that precludes their use? I just want to make sure I understand why they are bad RE:Smugmug - is it a problem issue or a preference issue?:scratch

Thanks,

Bill

rainforest1155
Jun-02-2007, 10:52 PM
Generally it's not recommended to use frames or iframes with smugmug pages as it might break the shopping cart, site passwords, password protected galleries and your login possibility due to cookies releated problems etc. But your special case it might be no problem, but then I'm no expert on this.

If you still want to try it put the following code in your Java Script section of the customizations:
framesWarning=false;

For more on this check Andy's collection (http://dgrin.com/showpost.php?p=288582&postcount=6) of posts from the smugmug CEO.

Sebastian