PDA

View Full Version : Problem with All Levels Navigational Menu (v3.03)



jed0228
10-29-2014, 09:34 AM
1) Script Title: All Levels Navigational Menu (v3.03)

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

3) Describe problem: I added the script in my MVC project in my _Layout.cshtml. I'm having a problem with the arrow images for the dropdowns. When my Url is like http://localhost:43975/Transaction , it's working fine. The arrow images are there. But when I navigate further and my url is like http://localhost:43975/Transaction/Create , the arrows dissapear. Please help. Thanks in advance.

jed0228
11-05-2014, 09:30 AM
Anybody here? Please help. Thanks.

molendijk
11-05-2014, 10:28 AM
Your links don't work.

jscheuer1
11-05-2014, 07:48 PM
We cannot usually diagnose a problem occurring on the local computer. Sounds like the path to the images and/or to the css file is relative when it should be absolute.

If you want more help, please put up a live example of the problem and provide us with a link to it.

jed0228
11-10-2014, 12:50 AM
Yeah it was the path after all. I typed it "Content/images" when it should be "/Content/images". Thanks for the help it's working now.

EDIT:

Or not xD It's ok in localhost but not in iis. Anyways, I'll just have to figure out how to fix this myself.

jscheuer1
11-10-2014, 02:17 AM
If you can put up a live example of the problem and post a link to it here, we will be glad to help.

jed0228
11-18-2014, 08:42 AM
Solved it now by having a hidden input that contains the correct url then modified ddlevelsmenu.js with something like:

var root = $("#root").val();

arrowpointers:{
downarrow: [root + "/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
rightarrow: [root + "/arrow-right.gif", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]

jscheuer1
11-18-2014, 04:37 PM
I think you're overthinking this. But if that works for you, that's absolutely fine.