1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    marwenmoalla is on a distinguished road

      0  

    Default Unanswered: cannot load image from internet with the device

    Unanswered: cannot load image from internet with the device


    i use sencha touch 2 with PhoneGap(Cordova)
    i load images from the internet and use them in the listview. When I launch my app in desktop browser, image loads fast and goes to the listview item. BUT on the device image cannot load

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Is it a connection issue? Are the images large?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    12
    Vote Rating
    0
    marwenmoalla is on a distinguished road

      0  

    Default


    no the connection is not issue and the same image when i use it from local it will display but from the internet the image cannot load
    i will describe the probleme with a sample code
    Ext.define('MyApp.view.ImageContainer', {
    extend: 'Ext.Container',
    alias: 'widget.ImageContainer',


    config: {
    items: [
    {
    xtype: 'image',
    height: 201,
    id: 'MyImage',

    src: 'http://www.sencha.com/assets/images/sencha-avatar-64x64.png'
    },
    {
    xtype: 'panel',
    //flex: 2,
    html: 'Sencha Inc.<br/>1700 Seaport Boulevard Suite 120, Redwood City, CA'
    }
    ]
    },



    });

    record.details = Ext.create('MyApp.view.ImageContainer', {
    title: record.get('text')
    });



    // set the src of image
    var image = record.details.child('#MyImage');



    //image.setSrc(record.get('res'));
    image.setSrc("../localfile.png");
    it's work with a local file
    but when i set the Src with an url from the internet it's not work
    the same probleme when i use Ext.video if i use a local file it's work but a distant file it's not work
    against when i use Ext.video and url from the internet it's work

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I Used this test case and it took a bit for the new image to be downloaded but it did show after a couple seconds:

    Code:
    var cnt = new MyApp.view.ImageContainer({
        fullscreen : true
    });
    
    var image = cnt.down('image');
    
    image.setSrc('http://www.sencha.com/files/blog/old/blog/wp-content/uploads/2010/06/sencha-logo.png');
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

Thread Participants: 1

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