Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Apps
-
HD-Enabler:Wirecloud
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(
);
});
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?
2015-10-22 15:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True