PDA

View Full Version : SSL Breaks Script



thefitz1
01-18-2013, 10:14 PM
1) Script Title: All Levels Navigational Menu (v3.02)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Describe problem: I installed the contents of the zip file into a test folder and uploaded to my site.
My site happens to be an HTTPS (SSL) site, and there is a problem with the script when run here.
https://theamericasdiamonds.com/test/demo.htm
If I load the same folder on a non secure site it works fine.

The problem occurs when you hover over any multilevel menu, the screen Breaks in half horizontally with 2 404 errors. One above the menu and another below.

Try it!

I would like to use it with my ssl site.

Thanks
thefitz1

jscheuer1
01-19-2013, 05:08 PM
For SSL you need to make up a blank HTML page called blank.htm and put it in the same folder as the menu. See inside the script:


//** All Levels Navigational Menu- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Usage Terms: http://www.dynamicdrive.com/notice.htm

//** Current version: 3.02 See changelog.txt for details

if (typeof dd_domreadycheck=="undefined") //global variable to detect if DOM is ready
var dd_domreadycheck=false

var ddlevelsmenu={
enableshim: true, //enable IFRAME shim to prevent drop down menus from being hidden below SELECT or FLASH elements? (tip: disable if not in use, for efficiency)

arrowpointers:{
downarrow: ["ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
rightarrow: ["ddlevelsfiles/arrow-right.gif", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]
showarrow: {toplevel: true, sublevel: true} //Show arrow images on top level items and sub level items, respectively?
},
hideinterval: 200, //delay in milliseconds before entire menu disappears onmouseout.
effects: {enableswipe: true, enableslide: true, enablefade: true, duration: 200},
httpsiframesrc: "blank.htm", //If menu is run on a secure (https) page, the IFRAME shim feature used by the script should point to an *blank* page*within* the secure area to prevent an IE security prompt. Specify full URL to that page on your server (leave as is if not applicable).

///No need to edit beyond here////////////////////

topmenuids: [], //array containing ids of all the primary m . . .

If you have several menus in different folders, you may specify the absolute path to the blank.htm file as long as it's on the secure server. The 404's you're seeing are the page looking for this file. If you choose to specify the absolute path, use a text only editor like NotePad to edit the ddlevelsmenu.js file.