#5079 closed bug (notabug)
$getJSON BUG (Jquery 1.4)
Reported by: | gilsones | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.core | Version: | 1.7.2 |
Keywords: | jquery 1.4, getJSON | Cc: | |
Blocked by: | Blocking: |
Description
$.getJSON not work in Jquery 1.4 code: $.getJSON('json.js',function(data){alert(dataname?)});
json.js code: {nome:"Gilson"}
Na versão antiga funciona, mas na versão 1.4 não funciona.
Change History (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This bug tracker is for jQuery UI, not jQuery. Also, that JSON is invalid, it needs to be {"name":"Gilson"} (note the quotes on the property name.
Note: See
TracTickets for help on using
tickets.
!!
CORRECTION !'''
$.getJSON not work in Jquery 1.4 code: $.getJSON('json.js',function(data){alert(data.name)});
json.js code: {name:"Gilson"}
In the old version works, but in version 1.4 does not work.