Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4871

FIWARE.Question.Tech.Apps.ApplicationMashup.ComponentDevelopment.jQueryProblem

    Details

      Description

      Created question in FIWARE Q/A platform on 01-03-2015 at 18:03
      Please, ANSWER this question AT http://stackoverflow.com/questions/28796876/using-jquery-in-wirecloud-gives-uncaught-referenceerror-jquery-is-not-defined

      Question:
      Using jQuery in Wirecloud gives "Uncaught ReferenceError: jQuery is not defined"

      Description:
      Here is the order of the includes:

      index.html:

      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
      <script src="js/main.js"></script>

      and here is the js file (Only relevant parts are shown):

      $(document).ready(function () {
      'use strict'
      init();
      $('.slider').slider(

      { orientation: isVertical, range: reverseSlider, max: maxVal, min: minVal, step: stepVal, value: 10, animate: 1300, }

      );
      });

      init() is just grabbing some values to create the slider.
      Everything works fine in the browser.

      The error is "Uncaught ReferenceError: jQuery is not defined" and it points to the $ symbol in the first line of the javascript file.
      I've tried to replace "$" with "jQuery" but got the same error.

      Any sugestions?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-19 12:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-19 12:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-19 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-19 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-19 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-19 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-22 15:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-22 15:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: