Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#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 10 years ago by gilsones

!!
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.

comment:2 Changed 10 years ago by Scott González

Resolution: invalid
Status: newclosed

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.

comment:3 Changed 8 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.