agmona
6 Feb 2011, 5:44 AM
Hi,
Im trying to load simple data from the asmx web service into a list,
i can see that the web service is called but nothing happens i just see a little black square instead of a list
this.dataView = new Ext.List({
tpl: '<tpl for="."><div class="contact">{data} <br/><strong>{id}</strong></div></tpl>',
itemSelector: 'div.contact',
singleSelect: true,
//grouped : true,
indexBar : true,
store: locationsStore,
floating : true,
width : 350,
height : 370,
centered : true,
modal : true,
hideOnMaskTap: true,
disclosure:{
handler:function(record,btn,index){
this.mainPanel.setCard(this.tabForm,"slide");
}
}
});
this.handleLogin = function () {
var pnl = this.mainPanel;
var dv = this.dataView;
if (this.loginform.getValues(true).first == "alon") {
Ext.Ajax.request({
url: 'dataService.asmx/GetTasks'
, method: 'post'
, headers: { 'Content-Type': 'application/json;charset=utf-8' }
, success: function (response, options) {
var json = response.responseText;
var o = eval("(" + json + ")");
locationsStore.loadData(o.d);
pnl.removeAll();
pnl.setCard(this.dataView, "slide");
//just shows a little black square instea of the list
}
, failure: function (response, options) {
}, scope: this
});
}
};
Im trying to load simple data from the asmx web service into a list,
i can see that the web service is called but nothing happens i just see a little black square instead of a list
this.dataView = new Ext.List({
tpl: '<tpl for="."><div class="contact">{data} <br/><strong>{id}</strong></div></tpl>',
itemSelector: 'div.contact',
singleSelect: true,
//grouped : true,
indexBar : true,
store: locationsStore,
floating : true,
width : 350,
height : 370,
centered : true,
modal : true,
hideOnMaskTap: true,
disclosure:{
handler:function(record,btn,index){
this.mainPanel.setCard(this.tabForm,"slide");
}
}
});
this.handleLogin = function () {
var pnl = this.mainPanel;
var dv = this.dataView;
if (this.loginform.getValues(true).first == "alon") {
Ext.Ajax.request({
url: 'dataService.asmx/GetTasks'
, method: 'post'
, headers: { 'Content-Type': 'application/json;charset=utf-8' }
, success: function (response, options) {
var json = response.responseText;
var o = eval("(" + json + ")");
locationsStore.loadData(o.d);
pnl.removeAll();
pnl.setCard(this.dataView, "slide");
//just shows a little black square instea of the list
}
, failure: function (response, options) {
}, scope: this
});
}
};