"is not defined function"  error means calling a function that doesn't exist at time it is called. Make sure path to your js file is valid, that is where the function is defined. Also be sure jquery.js being loaded before  plugin js . If problem persists post a link

 You can put your function calls into external js file to simplify script management

HariOm wrote:
Hi I am using SuperFish menu plugin to create menu system for my web.
It works ok on my home page but doesn't seem to be ok with other
pages. The problem is that I can't see "Arrow" in other pages. Then I
tried calling it in specific page using same code as master page (like
below) then it works. But I need to refer the script again in my
content page in addition to master page otherwise it gives error
saying "$('ul.sf-menu').superfish()" is not defined function.

<script type="text/_javascript_" src=""~/Content/webui/
Scripts/superfish.js")%>"></script>
$(function() {
            $('ul.sf-menu').superfish();
        });

But I don't want to include script in every page and if possible I
don't want to call this line of code in every page.

Is there any solution to this problem or someone having same problem
or may be I am doing some stupid thing cause I am still new MVC and
JQuery stuffs.

Thanks in advance

  

Reply via email to