[CLOSED] [1.0] jsonStore.loadData(json) is not changing date string into object inside IE 8

Threaded View

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

    [CLOSED] [1.0] jsonStore.loadData(json) is not changing date string into object inside IE 8

    hi,

    please fix this bug in the bad IE 8

    createJsonStoreFromJsonResults = function(json) {
        /* prepare results for reader */
        var flds = [];
        $.each(json, function(n, v) {
            var recordField = { 'name': n }
            if (n != undefined && (n + "").toLowerCase().indexOf('date') > -1) {
                recordField['type'] = 'date';
            }
            flds.push(recordField);
        });
        /* process results and convert them to bindable format */
        var store = new Ext.data.JsonStore({
            idProperty: flds[0].name,
            fields: flds
        });
        /* load json data into store */
        store.loadData(json,true);
        return store;
    }
    the above js function work fine in firefox but not in the IE... please test it and fix it.

    bye and thanks,
    Last edited by Daniil; Nov 08, 2010 at 7:13 AM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] JSON object property: convert to Date value
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 14, 2012, 2:50 PM
  2. [CLOSED] Date is a string instead of Date object
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 01, 2012, 2:10 PM
  3. Replies: 0
    Last Post: Dec 02, 2011, 12:23 AM
  4. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  5. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM

Tags for this Thread

Posting Permissions