1. #21
    Ext User
    Join Date
    Mar 2009
    Posts
    5
    Vote Rating
    0
    aplnas is on a distinguished road

      0  

    Post


    Only one solution worked for me, the post #11.

    PS: I'm using the library NewtonSoft.Json instead of the M$ Json.
    Imagination is more important than knowledge.

  2. #22
    Ext User
    Join Date
    Aug 2008
    Posts
    48
    Vote Rating
    0
    ndtreviv is on a distinguished road

      0  

    Talking Finally!

    Finally!


    Got it working:
    Code:
    var rawData = "{\"Test\":\"\\/Date(1247094000000+0100)\\/\"}";
    
    var dateParser = new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"', 'g');
    
    var exp = rawData.replace(dateParser, "$1new Date($2)");
    
    alert(eval('('+ exp +')'));

  3. #23
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by ndtreviv View Post
    Got it working:
    Code:
    var rawData = "{\"Test\":\"\\/Date(1247094000000+0100)\\/\"}";
    
    var dateParser = new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"', 'g');
    
    var exp = rawData.replace(dateParser, "$1new Date($2)");
    
    alert(eval('('+ exp +')'));
    i'm assuming you're using a pre-2.3.0 / 3.0.0 version of the library?

    support for the m$ format has already been added to both 2.3.0 and 3.0+ using the parse format "M$".
    see the docs for Date for more info.

    additionally, you might want to take a look at the following working test case:
    http://www.sencha.com/forum/showthread.php?p=346185

  4. #24
    Ext User
    Join Date
    Aug 2008
    Posts
    48
    Vote Rating
    0
    ndtreviv is on a distinguished road

      0  

    Default


    Err...yes. Yes indeed.

    We haven't upgraded to above 2.2 yet.

    Sorry...

  5. #25
    Sencha User
    Join Date
    Jul 2009
    Posts
    3
    Vote Rating
    0
    apalchaudhry is on a distinguished road

      0  

    Default Fixed -- Enjoy (ExtJS ver 4.1)

    Fixed -- Enjoy (ExtJS ver 4.1)


    Ext.override(Ext.form.field.Date, {
    valueToRaw: function (value) {

    var val = this.formatDate(this.parseDate(value));

    if (!val) {
    var re = new RegExp('\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\/'),
    val = (value || '').match(re);
    val = val ? new Date(((val[1] || '') + val[2]) * 1) : null;
    return this.formatDate(this.parseDate(val));
    }
    else
    return val;

    }
    });

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi