1. #1
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    65
    Vote Rating
    0
    jord1242 is on a distinguished road

      0  

    Default Problem in Firefox with dateRenderer on column

    Problem in Firefox with dateRenderer on column


    I have a column in a grid that is a date being passed back as:

    Code:
    Sep 23
    Here is my code for the column:

    Code:
    {id:'sched',header: 'Sched', width: 50, sortable: true, dataIndex: 'sched_date', renderer: Ext.util.Format.dateRenderer('M d')},
    In Chrome this renders correctly, and I can sort the column correctly by date (if I leave that out, it sorts the numbers as text and incorrectly sorts them).

    Problem is, in Firefox I am getting the following error:

    Code:
    Date.monthNames[month] is undefined
    http://localhost:9005/static/js/extjs/ext-all.js
    Line 19
    Why would this work just fine in Chrome, but not in Firefox?? Does anyone have a clue on this one? I should be able to use the 'M d' formatter.

    Thanks for any input.

    JJ

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    65
    Vote Rating
    0
    jord1242 is on a distinguished road

      0  

    Default


    Anyone have any ideas on this? I am stumped.

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2007
    Posts
    65
    Vote Rating
    0
    jord1242 is on a distinguished road

      0  

    Default Figured it out

    Figured it out


    For those that come across this, I was not formatting the date also in the JSONReader:

    Code:
    		reader			: new Ext.data.JsonReader({
    							root 			: 'recruits',
    							totalProperty	: 'totalCountRecruits'
    							},
    							[
    					           {name: 'source_abbr'},
    					           {name: 'source_name'},
    					           {name: 'source_sec_abbr'},
    					           {name: 'source_sec_name'},
    					           {name: 'internet_app'},
    					           {name: 'recept_abbr'},
    					           {name: 'recept_name'},
    					           {name: 'email'},
    					           {name: 'recruit_name'},
    					           {name: 'recruit_office_id'},
    					           {name: 'recruit_id'},
    					           {name: 'sched_date', type: 'date', dateFormat: 'M d'},
    					           {name: 'rescheduled'},
    					           {name: 'noshow'},
    					           {name: 'prior_qual'},
    					           {name: 'showed'},
    					           {name: 'qual'},
    					           {name: 'kept'},
    					           {name: 'accept'},
    					           {name: 'training'}
    					        ]
    		),

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