Skip to main content

Search and Top Navigation

#5079 closed bug (notabug)

Opened January 19, 2010 06:25PM UTC

Closed January 20, 2010 11:54PM UTC

Last modified October 11, 2012 09:15PM UTC

$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(data['name'])});

json.js code:

{nome:"Gilson"}

Na versão antiga funciona, mas na versão 1.4 não funciona.

Attachments (0)
Change History (3)

Changed January 19, 2010 06:28PM UTC by gilsones comment:1

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

Changed January 20, 2010 11:54PM UTC by scottgonzalez comment:2

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.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted