Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery warnings in Firefox Error Console
    primarykey
    data
    text
    <p>All of the sudden, I'm getting a bunch of warnings in the Firefox Error Console... this wasn't happening earlier today, and I haven't made significant changes. The error is just constantly repeating and accumulating about 3-4 times a second:</p> <pre><code>Warning: reference to undefined property jQuery.ajaxSettings.traditional </code></pre> <p>and that points to line 5383 of jQuery.js which is the jQuery JavaScript Library v1.4.2 file that I include. This is the only new code I added today:</p> <pre><code>$(document).ready(function(){ // search field focus and blur event handlers $('#search-field').focus(function() { if($(this).hasClass('placeHolder')){ $(this).val(''); $(this).removeClass('placeHolder'); $(this).addClass('search-field'); } }); $('#search-field').blur(function() { if($(this).val() == '') { $(this).val('Search'); $(this).addClass('placeHolder'); } }); }); </code></pre> <p>So when I put this code in its own file separately... I get the following warnings:</p> <pre><code>Warning: reference to undefined property E.queue Warning: anonymous function does not always return a value Source File: http://localhost/jQueryChat/js/jQuery.js Line: 404, Column: 2 Source Code: }, Warning: anonymous function does not always return a value Source File: http://localhost/jQueryChat/js/jQuery.js Line: 416, Column: 23 Source Code: return jQuery.ready(); </code></pre> <p>.. and such. So I don't know why this is happening. Any ideas?</p> <p>UPDATE: I went to about:config for Firefox and turned <code>javascript.options.strict</code> to <code>false</code> and the warnings went away. But I feel like this is not a solution.</p> <p>Thanks, Hristo</p>
    singulars
    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.
 

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