What is this line of code for?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
tooldonkey
Advanced
Advanced
Posts: 10
Joined: Fri Nov 08, 2002 5:09 pm
Location: VA

What is this line of code for?

Post by tooldonkey »

What is the purpose of the following code? Thanks!

Code: Select all

if(ie55){ifBlnk="";if(location.protocol=="https:")ifBlnk="/blank.htm";mt="<IFRAME frameborder=0 id=if"+mnu+" src=\""+ifBlnk+"\" scroll=none style=\"FILTER:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);visibility:hidden;height:20;position:absolute;width:"+(menu[3]+ns6w)+"px;left:"+dmleft+"px;top:"+menu[1]+"px;z-index:5\"></iframe>"}
User avatar
tooldonkey
Advanced
Advanced
Posts: 10
Joined: Fri Nov 08, 2002 5:09 pm
Location: VA

Post by tooldonkey »

To be more specific, what is the purpose of using the iframe if https?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

The reason is, at this point in the menu code, Andy needs to create an iframe for whatever reason to make the menu appear correctly. There is a little quirk in Internet explorer in that, when you declare an iframe and do not give it a src attribute, IE will default to about:blank. But according to IE, the about page in IE is NOT secure and does not play nice with the https protocol which is supposed to be secure....so if he puts in a filler file, say blank.html, it stays secure. It also subdues warnings along the lines of 'insecure and secure items on this page, do you want to view it.' The down side is, your server log may fill up with 404s...hehe. Upgrade :!:

LATE ADDITION:
I should say this still is used in the new menu, so upgrading won't fix the problem. Your better off placing a blank.html file in the root of your site to qualm the errors for now. But as far as I can see (I havent thought about it too much), its a necessary evil.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
lkline
Beginner
Beginner
Posts: 1
Joined: Mon May 03, 2004 10:33 pm

Post by lkline »

So why not just create a src attribute for the IFRAME?
bholder
Beginner
Beginner
Posts: 7
Joined: Mon May 17, 2004 3:31 pm

ssl / blank.html solution not working for me

Post by bholder »

i need to find an alternative to placing blank.html in the root of our site - i tried this and it seemed to work initially but has stopped working and is prompting users to download insecure items.

can you possibly tell me how to alter the src attribute of the iframe in the milonic source code? our site is running on a custom cms that pushes invalid requests to the homepage of the site, and i suspect that a request for blank.html is being handled this way and thus causing the problem.

thanks!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Are you actually using version 3 of the menu? If you're using version 5 you should put the question in that section. Sorry I can't help on the iframe and the blank.html.

Ruth
Post Reply