Note that there are some explanatory texts on larger screens.

plurals
  1. POScript seems to be running before jQuery loads - Uncaught ReferenceError: $ is not defined
    primarykey
    data
    text
    <p>I'm editing a sharepoint master page which contains at the very top of my head tag, a call to labJS and a scriptloader.js file. </p> <p>This is what this file contains: </p> <pre><code>$LAB .script("/Style Library/libs/jquery-1.10.2.min.js") .script("/Style Library/libs/jquery-ui.min.js") .script("https://www.google.com/jsapi") .script("/Style Library/libs/jquery.SPServices-2013.01.min.js") .script("/Style Library/libs/angular.min.js") .script("/Style Library/libs/knockout-3.0.0.js") .script("/Style Library/addons/wpToggle/wpToggle-jQuery.js") .script("/Style Library/addons/spCharts/spjs-charts-v4.js") .script("/Style Library/addons/quickLaunchToggle/jQuery.LISP.quicklaunch.js") </code></pre> <p>On my sharepoint site I have a smaller html page which contains a clock </p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;title&gt;CSS3 Digital Clock with jQuery&lt;/title&gt; &lt;style type="text/css"&gt;&lt;/style&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { // Create two variable with the names of the months and days in an array var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"] // Create a newDate() object var newDate = new Date(); // Extract the current date from Date object newDate.setDate(newDate.getDate()); // Output the day, date, month and year $('#Date').html(dayNames[newDate.getDay()] + ", " +monthNames[newDate.getMonth()]+ ' ' + newDate.getDate() + ', ' + newDate.getFullYear()); setInterval( function() { // Create a newDate() object and extract the seconds of the current time on the visitor's var seconds = new Date().getSeconds(); // Add a leading zero to seconds value $("#sec").html(( seconds &lt; 10 ? "0" : "" ) + seconds); },1000); setInterval( function() { // Create a newDate() object and extract the minutes of the current time on the visitor's var minutes = new Date().getMinutes(); // Add a leading zero to the minutes value $("#min").html(( minutes &lt; 10 ? "0" : "" ) + minutes); },1000); setInterval( function() { // Create a newDate() object and extract the hours of the current time on the visitor's var hours = new Date().getHours(); // Add a leading zero to the hours value $("#hours").html(( hours &lt; 10 ? "0" : "" ) + hours); }, 1000); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="clockContainer"&gt; &lt;div class="clock"&gt; &lt;div id="Date"&gt;&lt;/div&gt; &lt;ul&gt; &lt;li id="hours"&gt; &lt;/li&gt; &lt;li id="point"&gt;:&lt;/li&gt; &lt;li id="min"&gt; &lt;/li&gt; &lt;li id="point"&gt;:&lt;/li&gt; &lt;li id="sec"&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>My console gives me this error at line: 1472 of my page but the scriptloader.js file is called basically right after the opening tag.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload