1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Vote Rating
    0
    ac360 is on a distinguished road

      0  

    Default Can't Get a JSON item to display...

    Can't Get a JSON item to display...


    Hi there,

    I'm trying to get the thumbnail url to display in my list. But I can't figure out how to enter it in to the "mapping" field of my model?

    Update: The thumbnails appear to show up occassionally if I just use 'thumbnail' in the mapping. But on refresh, they show up as broken image links again.

    http://theojai.net/?json=get_recent_posts


    My Model:

    Code:
    Ext.define('MyApp.model.Tweet', {    extend: 'Ext.data.Model',
    
    
        config: {
            fields: [
                {
                    name: 'title',
                    mapping: 'title'
                },
                {
                    name: 'excerpt',
                    mapping: 'excerpt'
                },
                {
                    name: 'thumbnail',
                    mapping: 'thumbnail.url'
                }
            ]
        }
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,637
    Vote Rating
    400
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      1  

    Default


    Is the store populated each time? What are you trying to load this into? You have not provided very much detail at all.

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    15
    Vote Rating
    0
    ac360 is on a distinguished road

      0  

    Default Further Details

    Further Details


    This issue is resolved. I simply used "thumbnail" in place of "thumbnail.url" above.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar