Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery conflicts (not in Chrome)
    primarykey
    data
    text
    <p>I am writing a widget and am depending on jQuery so i need to use the noconflict in order to avoid problems for pages where site owners are also running jQuery.</p> <p>I have this so far:</p> <pre><code>(function () { var js13; var script = document.createElement('script'); script.src = 'http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); var script = document.createElement('script'); script.src = 'http://code.jquery.com/jquery-1.8.3.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); var script = document.createElement('script'); script.src = 'http://code.jquery.com/ui/1.9.2/jquery-ui.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); script.onload = scriptLoadHandler; function scriptLoadHandler() { js13 = window.jQuery.noConflict(true); main(); } /******** Main function ********/ function main() { js13(document).ready(function ($) { main widget code is here..... } // main })(); </code></pre> <p>Any ideas what could be wrong? I am getting (Safari):</p> <pre><code>Type Issue 'undefined' is not an object (evaluating 'window.jQuery.noConflict') </code></pre> <p>Need it to work in all browsers, no matter what jQuery or other scripts a page is running.</p> <p>Another problem is that <a href="http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js" rel="nofollow">http://xxx.xxx.xxx.xxx:8080/socket.io/socket.io.js</a> is not always loading..</p> <p>I neeed that to load before the rest loads</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