jQuery.get() and jQuery.getJSON() callback fails
I've been attempting to use 1.4.1 but I'm finding that $.get() and .getJSON() callbacks fail. The XHR requests succeed. I can examine the full request in both Chrome and Firebug. However, the callback functions *don't* execute.
To test, I tried the same url with both 1.4.1, 1.3.2, and via a raw XMLHttpRequest(). The last 2 requests succeed, 1.4.1 fails.
- //v1.3.2 WORKS, fails in v1.4.1
- $.get('/topic/api/template/list', function(data){
- alert(data);
- });
- //native WORKS
- var req = new XMLHttpRequest();
- req.open('GET', '/topic/api/template/list', true);
- req.onreadystatechange = function(aEvt) {
- if (req.readyState == 4){
- if(req.status == 200){
- console.log( req.responseText );
- }else{
- console.log("Error loading page");
- }
- }
- };
- req.send(null);
On another note, I really find the new forums/bug tracking system to be confusing. The jQuery documentation is a lot more confusing than it used to be. I'm probably the only one, but there's just too many options to click on. Can't find anything. It used to be so much more direct and simple than it is now.