1. #11
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    vladimirmaslov is on a distinguished road

      0  

    Default Html page loading example

    Html page loading example


    in my view file
    ......
    {
    title: 'Характеристики',
    //html : 'Описание',
    xtype: 'panel',
    //htmlurl: 'pages/ford3/ford3.html',
    listeners: {show: function(obj,opt){ htmlPageShow('pages/ford3/ford3.html',obj,opt);}},
    scrollable: {direction: 'vertical'},
    },
    .....

    in app.js

    .....
    function htmlPageShow(url,obj,opt)
    {
    //debugger
    Ext.Ajax.request(
    {
    url: url,
    //params: { id: 1},
    scope: obj,
    async: false,
    success: function(response)
    {
    var text = response.responseText;
    this.setHtml(text);

    },
    failure: function(response, opts)
    {
    alert('Ошибка загрузки: '+opts.url);
    //debugger
    //console.log('server-side failure with status code ' + response.status);
    }
    });
    //alert(obj.getHtml());
    }
    .....

    That' all folks!

    I don't use inheritance because it's don't worked on Android.

  2. #12
    Sencha User
    Join Date
    Nov 2011
    Posts
    6
    Vote Rating
    0
    dmachado is on a distinguished road

      0  

    Default no view html

    no view html


    I am able to show the alert, but show me the contents of the HTML page.
    You can look at the page I am trying to modify: http://app.liturgia.pt/menu11/examples/kitchensink/
    User Interface -> Forms -> HTML_teste
    What am I doing wrong?

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