Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2859 in 2.0.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    0
    jeroenwanten is on a distinguished road

      0  

    Default JSON data not displayed correctly due to issues with identifier containing $

    JSON data not displayed correctly due to issues with identifier containing $


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.0.1


    Browser versions tested against:
    • Chrome 18.0.1025.162 m(Windows)


    DOCTYPE tested against:
    • Sample Data:
      Ext.data.JsonP.callback1({"title":{"type":"someData","$t":"someData"}});


    Description:
    • When receiving JSON objects with identifiers $t, it cannot validate these records and thus no data is shown.


    Steps to reproduce the problem:
    • make an call and fetch JSON data with identifiers that contain or begin with $


    The result that was expected:
    • Show a list of titles that come from an url


    The result that occurs instead:
    • Visual : page keeps loading the results, no data is eventually shown.


    Test Case:

    Code:
        Ext.define('SenchaTest.view.Blog',{
        extend: 'Ext.navigation.View',
        xtype: 'blog',
        
        requires: [
        'Ext.dataview.List',
        'Ext.data.proxy.JsonP',
        'Ext.data.Store'
        ],
        
        
        config:{
            title: 'Blog',
            iconCls: 'star',
            
            items:{
                               xtype: 'list',
                               itemTpl: '{title.$t}',
                                title:'Recent Posts',
                                store: {
                                    autoLoad: true,
                                    fields: ['title'],
    
                                proxy: {
                                        type: 'jsonp',
                                        url: 'httpCall',
                                        reader: {
                                            type: 'json',
                                            rootProperty: 'rootProp'
                                        }
                                    }
                                }
                            }
                        
                    
        }
    });


    HELPFUL INFORMATION

    Debugging already done:
    • I have already debugged the code and got it partially working when changing this entry "tagRe: /([\w-\.\#]+)(?:\[\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?/" to "tagRe: /([\w-\.\#\$]+)(?:\[\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?/" in XTemplateCompiler.js

    Operating System:
    • Windows 7

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Sencha Touch Dev Team
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,235
    Vote Rating
    4
    TommyMaintz will become famous soon enough

      0  

    Default


    This has been resolved for the next release. Thanks for the report and debugging done.

Tags for this Thread