Results 1 to 3 of 3

Thread: Javascript Error, even on the Demo

  1. #1
    Thread Starter
    tempopasso's Avatar
    Join Date
    Jul 2013
    Location
    France
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Error, even on the Demo

    Hello !

    There is a javascript error that may be the reason why one of my plugin is dysfounctionning.

    The javascript error, which is by the way on the Demo site to is the following:

    Uncaught TypeError: Property '$' of object [object Object] is not a function


    I found out the error was the "$(function() {" line (here line N#7):


    Code:
    <!--[if !IE]><!--><script>
    if (/*@cc_on!@*/false) {
      document.documentElement.className+=' ie10';
      } 
      </script><!--<![endif]-->
      <script>
       $(function() {
    	   
          // Create the dropdown base
          $("<select />").appendTo("nav");
          
          // Create default option "Go to..."
          $("<option />", {
             "selected": "selected",
             "value"   : "",
             "text"    : "Go to..."
          }).appendTo("nav select");
          
          // Populate dropdown with menu items
          $("nav a").each(function() {
           var el = $(this);
           $("<option />", {
               "value"   : el.attr("href"),
               "text"    : el.text()
           }).appendTo("nav select");
          });
          
    	   // To make dropdown actually work
    	   // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
          $("nav select").change(function() {
            window.location = $(this).find("option:selected").val();
          });
    	 
    	 });
    	  </script>
    Does someone have a clue to resolve this error and avoid some problems with jQuery functions ?
    Thanks in advance,

    Best Regards,
    Stephane

  2. #2
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  3. #3
    Thread Starter
    tempopasso's Avatar
    Join Date
    Jul 2013
    Location
    France
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: May 19th, 2014, 11:49 PM
  2. Javascript Error
    By EventEspresso in forum Help Using JobRoller
    Replies: 2
    Last Post: April 9th, 2011, 04:15 PM