Activity Stream
48,167 MEMBERS
62956 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1.     
    #1
    Member

    Default JavaScript problem

    hi there. I tried to integrate HTML site in WordPress but shows the following error in google chrome's inspect element. The HTML site works fine on localhost and server tho.

    Code: 
    Uncaught TypeError: Object #<Object> has no method 'superfish'
    This line seems to be wrong: $('ul.menu').superfish({

    help pl0x?


    sorted tnx to shadow.prx

    Ok so this is how it worked:

    1) Added the lines in the correct order.

    Code: 
        <script src="jquery-1.6.3.min.js" type="text/javascript"></script>
        <script src="superfish.js" type="text/javascript"></script>
        <script src="script.js" type="text/javascript"></script>
    <script> 
     
        $(document).ready(function() { 
            $('ul.menu').superfish(); 
        }); 
     
    </script>
    2. Removed jquery from WordPress default installation.
    ChosenOne Reviewed by ChosenOne on . JavaScript problem hi there. I tried to integrate HTML site in WordPress but shows the following error in google chrome's inspect element. The HTML site works fine on localhost and server tho. Uncaught TypeError: Object #<Object> has no method 'superfish' This line seems to be wrong: $('ul.menu').superfish({ help pl0x? sorted tnx to shadow.prx Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    you added the superfish plugin in header?

  4.     
    #3
    Member
    Are you talking about this?


    <script src="/js/superfish.js" type="text/javascript"></script>


    yes i got that but it wont work

  5.     
    #4
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    you have a link to your site?

  6.     
    #5
    Member
    This is everything I link with:

    Code: 
        <script src="/rjquery-1.6.3.min.js" type="text/javascript"></script>
        <script src="/rcufon-yui.js" type="text/javascript"></script>
    
        <script src="/rcufon-replace.js" type="text/javascript"></script>
        <script src="/rOswald_400.font.js" type="text/javascript"></script> 
        <script src="/rsuperfish.js" type="text/javascript"></script>
        <script src="/rjquery.hoverIntent.js" type="text/javascript"></script>
        <script src="/rFF-cash.js" type="text/javascript"></script> 
        <script src="/rscript.js" type="text/javascript"></script>
        <script src="/rtms-0.3.js" type="text/javascript"></script>
    
        <script src="/rtms_presets.js" type="text/javascript"></script>
        <script src="/rjquery.easing.1.3.js" type="text/javascript"></script>
        <script src="/rbackgroundPosition.js" type="text/javascript"></script>
        <script src="/reasyTooltip.js" type="text/javascript"></script>
    and it says it has problem with superfish.js line #2 and line 2 is this: $('ul.menu').superfish({

  7.     
    #6
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    sorry, i can't see the problem, pm me your url if you don't want to post it here

  8.     
    #7
    Member
    Website's:
    sborg.us
    "I got this problem when running the site on localhost"

    Why does every link have 'r' before the JS file? rjquery/rsuperfish??

    V3g3ta | Halcyon | Abhi

  9.     
    #8
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    sorry, didn't saw that

    maybe path to plugin is wrong?

  10.     
    #9
    Member
    sorry first post edited and the path is correct thats not the issue

  11.     
    #10
    Member
    Website's:
    sborg.us
    Awrite Borce

    Do you have any cache plugin installed on your localhost too?

    V3g3ta | Halcyon | Abhi

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] Settle Problem My PopUP Javascript
    By kedenya in forum Completed Transactions
    Replies: 1
    Last Post: 9th Aug 2011, 06:34 AM
  2. Problem using javascript in form field
    By abhikala1 in forum Web Development Area
    Replies: 4
    Last Post: 19th Apr 2011, 10:52 PM
  3. Need Javascript Help
    By Netguy in forum Web Development Area
    Replies: 7
    Last Post: 19th Mar 2011, 03:24 PM
  4. Help About JavaScript
    By macypro in forum Technical Help Desk Support
    Replies: 1
    Last Post: 7th Dec 2010, 12:23 AM
  5. help with some javascript
    By bumilad20 in forum Web Application/Script Support
    Replies: 2
    Last Post: 3rd Jun 2010, 05:01 AM

Tags for this Thread

BE SOCIAL