Bug Tracker

Opened 13 years ago

Closed 12 years ago

#6688 closed bug (worksforme)

jQuery 1.4.2 blocks console.log

Reported by: offwhite Owned by:
Priority: undecided Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:


I have a test page running locally (Apache on OSX Snow Leopard) and I reference the following URL for jQuery.


I make an AJAX request using $.getJSON and with the response I pass the value to console.log and it shows nothing. Below is some sample code.

$("#GetJSON").click(function(e) {

$.getJSON("api/TestJSON", null, function(response) {


}); e.preventDefault();


Now if I change it from 1.4.2 to 1.3.2 the response is logged to the console as expected. It seems that something is overriding the console logging function in 1.4.2.

Change History (2)

comment:1 Changed 13 years ago by dmethvin

Component: unfiledajax

Are you sure your function is called? What happens if you use alert() instead?

comment:2 Changed 12 years ago by addyosmani

Priority: undecided
Resolution: worksforme
Status: newclosed

console.log works fine with jQuery 1.4.2.

To demonstrate with getJSON, I've created a quick 6-line Twitter API app here which demonstrates it logging the tweet text fine using FireBug and FireFox 3.6.10.


I think the problem may be with the way your local server was responding.

If the above doesn't assist, please free to re-submit your ticket if you can supply us with further information so we can accurately establish what was causing the behavior experienced.

Note: See TracTickets for help on using tickets.