Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:17

What is this line of code for?


Poster: tooldonkey
Dated: Monday August 25 2003 - 22:01:44 BST

What is the purpose of the following code? Thanks!

Code:
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>"}


Poster: tooldonkey
Dated: Monday August 25 2003 - 22:04:00 BST

To be more specific, what is the purpose of using the iframe if https?


Poster: Hergio
Dated: Tuesday August 26 2003 - 20:38:13 BST

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.


Poster: lkline
Dated: Monday May 3 2004 - 22:37:08 BST

So why not just create a src attribute for the IFRAME?

ssl / blank.html solution not working for me


Poster: bholder
Dated: Monday May 17 2004 - 15:46:32 BST

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!


Poster: Ruth
Dated: Tuesday May 18 2004 - 2:54:07 BST

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