Archive for the ‘JSON’ Category

Error “No Transport” Calling WCF REST action using jQuery

January 8, 2012

This issue has eaten up some of my time, trying myself to figure it out for the solution. Because, the following snippet worked great in FireFox. Only the boss “IE” was the killer there :).

var url = ‘http://localhost:35461/SampleApp.svc/get/Do/123;’;

            url: url,
            dataType: 'json',
            type: "GET",
            error: function (xhr, ajaxOptions, thrownError) {
            success: function (model) {

Finally, after a bit of googling, I have got some references, that helped great.


“…..We need to enable cross-domain requests in environments that do not support….”

Cors is equal to true if a browser can create an XMLHttpRequest object and if thatXMLHttpRequest object has a withCredentials property. To enable cross-domain requests in environments that do not support cors yet but do allow cross-domain XHRrequests (windows gadget, etc), set $.support.cors = true;”

Hence, the solution is……..

Add the following, in your client. It works like a charm. = true;

[Cors – Cross-Origin Resource Sharing]

There were some references to use dataType: ‘jsonp’, but that is a different story. I will write some later, what needs to be done if we say dataType: ‘jsonp’

Hope this helps someone…!

Online JSON and YAML Parser

December 31, 2010

Fantastic online tools, you can try and learn. Dirt your hands right away! 🙂

1. Online JSON Parser

Allows you to paste in a JSON string and have it validated. It will immediately allow you to see pesky subtle errors in your JSON syntax. Just edit your JSON string right there in the box and it will auto update the preview below live so you can immediately see the effects your changes have on the outcome.

2. Online YAML Parser

YAML: YAML Ain’t Markup Language (
What It Is: YAML is a human friendly data serialization  standard for all programming languages (YAML to JSON/Python/Canonical YAML)

Hope you would enjoy great! 🙂