Note that there are some explanatory texts on larger screens.

plurals
  1. POJavaScript functions not defined?
    primarykey
    data
    text
    <p>For some reason, Firefox is throwing "function not defined" errors at this piece of JS:</p> <pre><code> $(function() { // on document ready function updateAlerts() { $.ajax({ url : "/check.php", type : "POST", data : { method : 'checkAlerts' }, success : function(data, textStatus, XMLHttpRequest) { var response = $.parseJSON(data); // Update the DOM to show the new alerts! if (response.friendRequests &gt; 0) { // update the number in the DOM and make sure it is visible... $('#notifications').show().text(response.friendRequests); } else { // Hide the number, since there are no pending friend requests or messages var ablanknum = '0'; $('#notifications').show().text(ablanknum); } } }); } function friendRequestAlert() { $.ajax({ url : "/check.php", type : "POST", data : { method : 'sendFriendAlert' }, success : function(data, textStatus, XMLHttpRequest) { var response = $.parseJSON(data); if (response.theFRAlert !== '0') { // Display our fancy Javascript notification. $.jgrowl('' + response.theFRAlert + ''); } } }); } function messageAlert() { $.ajax({ url : "/check.php", type : "POST", data : { method : 'sendMessageAlert' }, success : function(data, textStatus, XMLHttpRequest) { var response = $.parseJSON(data); if (response.theAlert !== '0') { // Display our fancy Javascript notification. $.jgrowl('' + response.theAlert + ''); $('#therearemessages').show().text(response.theAlert); } } }); } }); </code></pre> <p>I checked through my code and nothing seems to be wrong. </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