PDA

View Full Version : loading message dont goes off



medinalex
2 Feb 2010, 10:59 AM
I load successfully a form with a Json data store. Data store is generated by an JSP page. The problems is that the waiting message don't goes off after loading data.


Form load code:


form.getForm().load({
url:'get_to_show.jsp'
,waitMsg:'Loading...'
,params:{r: '1',mes:'Enero',ano:'2010'}

,failure: function() {
Ext.Msg.alert("Load data failed");
}

});

VinylFox
2 Feb 2010, 11:15 AM
We would need to see what the response looks like, but im guessing your missing a success property in your response JSON.

medinalex
2 Feb 2010, 11:17 AM
{success:true,data:{"max":"1","current":"1","cm":"101 - Presentación a grupos comunitarios","cpl":"38.0 - Alimentos","narr":"zanahoria","key":"1","fecha":"2010-01-01 14:02:34.0","ta":"Reunion","ig":"Individual","lugar":"San JUan","np":"12"}}