[CLOSED] AjaxResult Compatibility issue with JQ

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] AjaxResult Compatibility issue with JQ

    Hi there,

    I proudly built my server-side mvc actions using Ext.net.MVC.AjaxResult (return result).
    I thought they should be compatible if I use JQ.ajax() to cope with them.
    Now comes the first question:

    AjaxResult() returns json formatted with no quote on property names. like "{ success: true }"
    Can I do something to intentionally specify AjaxResult to return json string with property name quoted, like "{ "success":true }" ?
    Last edited by Daniil; Dec 18, 2012 at 7:43 AM. Reason: [CLOSED]
  2. #2
    Hi @cleve,

    Yes, we recently discovered (due to another forum thread) that jQuery doesn't work with such JSON without quotes. Honestly, it was a surprise.

    Generally, AjaxResult has been designed to be used with Ext.NET DirectEvents and DirectMethods only. It works with a JSON without quotes.

    Unfortunately, there is no option to get these quotes in a response.

    But I will discuss with my colleagues a possibility to get it. An option or just serialize everything with quotes.
  3. #3
    Quote Originally Posted by Daniil View Post
    But I will discuss with my colleagues a possibility to get it. An option or just serialize everything with quotes.
    We made the change in the ClientConfig class. Now it quotes properties. It affects on the AjaxResult/DirectResult classes as well.

    Since now we are going to serialize everything with quotes.

    Thank you for the question.

Similar Threads

  1. IE document compatibility meta tag issue
    By zach in forum 1.x Help
    Replies: 1
    Last Post: Jan 17, 2012, 7:04 AM
  2. [CLOSED] Compatibility with chrome and firefox issue
    By imaa in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Dec 20, 2011, 10:42 PM
  3. [0.8.2 ] compatibility issue with ie6.0
    By pierluigiM in forum 1.x Help
    Replies: 2
    Last Post: Nov 29, 2010, 1:41 PM
  4. AjaxResult class issue in ext.net.dll
    By vs.mukesh in forum 1.x Help
    Replies: 4
    Last Post: Jun 10, 2010, 1:38 PM
  5. Compatibility view issue in IE 8 and Mozilla
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 12
    Last Post: Jan 14, 2010, 11:36 PM

Posting Permissions