Web dev and programming discussions forums
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

jQuery.support.nonstandard_json_string

Update the DOM prompting page refreshes, flicker to "get correct calculations"?
(6 lines)
Are newcomers welcome here?
(14 lines)
Jan 10, 2010
DBJDBJ
DBJDBJ
Actually the simplest "way out" is to have new jQuery.support member :

jQuery.support.nonstandard_json_string =
		function () {
               try { JSON.parse("{ a : 1 }"); return true ; } catch(x)
{ return false; }
            }();

As far as I know "only" in CHROME :
jQuery.support.nonstandard_json_string === true ;

Having this implement JSON parsing logic in 1.4 ...

--DBJ





Reply
Tags: true, return
Messages in this thread
reply Re: Remove JSON.parse from 1.4
(27 lines) Jan 7, 2010 10:56
reply Re: Remove JSON.parse from 1.4
(32 lines) Jan 7, 2010 11:27
reply Re: Remove JSON.parse from 1.4
(33 lines) Jan 7, 2010 12:37
reply Re: Remove JSON.parse from 1.4
(21 lines) Jan 7, 2010 13:54
reply Re: Remove JSON.parse from 1.4
(36 lines) Jan 7, 2010 15:42
reply Re: Remove JSON.parse from 1.4
(21 lines) Jan 7, 2010 19:50
jQuery.support.nonstandard_json_string
reply Re: jQuery.support.nonstandard_json_string
(27 lines) Jan 11, 2010 18:51
reply Re: jQuery.support.nonstandard_json_string
(20 lines) Jan 11, 2010 19:26
reply Re: jQuery.support.nonstandard_json_string
(14 lines) Jan 12, 2010 06:05