search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Error return JavaScript(SimpleJsonSerializer.Serialize("OK"))

Asked by Ana Molina
2 years ago.

hello

I'm using daypilot and when a I try to use this function "return JavaScript(SimpleJsonSerializer.Serialize("OK"));" the system show me this message error :

Unhandled exception at line 2, column 4058 in http://localhost:55787/Scripts/jquery-1.11.1.min.js

0x800a01bd - Error en tiempo de ejecución de JavaScript: El objeto no acepta esta acción

but only I have this trouble on IE.

how call you help me please?

Answer posted by Dan Letecky [DayPilot]
2 years ago.

You can try sending a different JSON response. This code sends just a string:

"OK"

This was not considered a valid JSON text in the original JSON spec and older implementations (older browsers, older jQuery versions) mail not be able to parse it. See also:

https://stackoverflow.com/questions/13318420/is-a-single-string-value-considered-valid-json

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.