Skip to main content

Bug Tracker

Side navigation

#6688 closed bug (worksforme)

Opened June 18, 2010 02:13AM UTC

Closed October 03, 2010 02:32AM UTC

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:
Description

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

http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

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) {

console.log(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.

Attachments (0)
Change History (2)

Changed June 18, 2010 02:17AM UTC by dmethvin comment:1

component: unfiledajax

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

Changed October 03, 2010 02:32AM UTC by addyosmani comment:2

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.

http://jsfiddle.net/mK7XX/1/

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.