[CLOSED] MVC Json and Date field type

  1. #1

    [CLOSED] MVC Json and Date field type

    First off, I'm digging coolite and the vast amount of effort it saves over raw ExtJS.

    I am having a small issue with Json serialized dates from the MVC framework. ExtJS does not natively support the "\/Date(1067872817000-0500)\/" format MS uses, but I found a forum post that describes a workaround. Do you think it would be possible to include this workaround in a future build of the framework? For now, I'm going to hack it in locally.

    http://extjs.com/forum/showthread.php?t=26862

    Thanks,

    Michael
  2. #2

    RE: [CLOSED] MVC Json and Date field type

    Just in case anyone runs into the same problem, here is the solution.

    Add the following to the head of your page or master page:

        <ext:ScriptContainer runat="server" />
        <script language="javascript" type="text/javascript" src="/Content/FixDate.js"></script>
    This will ensure the function override won't be replaced.

    Download the attached file and save as FixDate.js then Enjoy!
  3. #3

    RE: [CLOSED] MVC Json and Date field type



    Hi mthird,

    Thanks! for posting the date parsing fix. This will certainly come in handy. I'll also certainly look into including the fix into coolite-core.js.

    Over this weekend I going to try and build a full app using the MVC-Beta bits.

    Please let us know if you run into any other MVC+Coolite issues.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Default date format for Type="Date" RecordField
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: May 29, 2012, 3:16 PM
  2. [CLOSED] Date Field - MVC/JSON
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 30, 2012, 7:56 PM
  3. Replies: 4
    Last Post: Jul 29, 2011, 1:42 PM
  4. Replies: 2
    Last Post: May 29, 2011, 3:42 AM
  5. [CLOSED] Displaying Todays date in Date field
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Feb 22, 2011, 10:38 AM

Posting Permissions