0

i am facing Jquery Mega Menu Issue with my website If i put Master page in my Module Directory then jquery works fine. But if i moved the master page to the root then its not working for pages which are inside folders. I have checked that the pages which are in the root working fine with that master page which in root.

What i can do?? Is it correct way to create master page for each folder unnecessarily ??

1 Answer 1

0

Certainly sounds like a mapping problem. The Mega menu should be reasonably isolated meaning you may need to utilise more precise mapping conventions, i.e. use ~/ or even / to refer to the absolute root of the ASP.NET site and house your jquery files as appropriate.

In addition, Firebug or equilivalent should highlight any loading issues or Javascript errors within the console.

5
  • Hi!, Thanks for your answer. But i have used <script src="../Js/jquery.megamenu.js" type="text/javascript"></script> Or <script type='text/javascript' src='<%# ResolveUrl ("Js/jquery.min.js") %>'></script> But none of work. In firebug i found the file is mapping correctly. but run time when function calls and it try to apply css class it cant. Mar 27, 2012 at 4:31
  • So it loaded the JS file (look at the 'NET' tab) and nothing appeared in the console? Mar 27, 2012 at 10:02
  • XML can't be the whole program localhost:1179/projectname/home.aspx Line 360 Mar 27, 2012 at 10:29
  • Sorry, that doesn't make any sense. Mar 27, 2012 at 12:02
  • I got src='' in the page so it fires error "XML can't be the whole program" Mar 28, 2012 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.