Forum /
Sencha General Forums /
Community Discussion /
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.
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?
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us