Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Very HTML in Sencha Touch

  1. #11
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default 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
      0  

    Default 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?

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •