Tuesday, December 22, 2009

[jQuery] Re: Autosuggest breaks in ie7/8

your JSON

{"results":[{
"postid":"697",
"summary":"boddytest",
"title":"testtitlehere",
"link":"http://
testlink.com",
}
,{
"postid":"697",
"summary":"boddytest",
"title":"testtitlehere",
"link":"http://
testlink.com",
}

,],
"paging":{
"start_idx":1,
"end_idx":5,
"total":5,
"current":"1",
"pages":1,
"has_next":false,
"has_prev":false,
}
}

* tsk tsk *

see how you have trailing commas after the last key/value pairs? IE
= handles that poorly

{
"results": [
{
"postid":"697",
"summary":"boddytest",
"title":"testtitlehere",
"link":"http://testlink.com"
},
{
"postid":"697",
"summary":"boddytest",
"title":"testtitlehere",
"link":"http://testlink.com"
},
],
"paging": {
"start_idx":1,
"end_idx":5,
"total":5,
"current":"1",
"pages":1,
"has_next":false,
"has_prev":false
}
}

that would/should be JSON that IE can handle.....

No comments: