Hi:
In my app,there are 9 grid components in carousel ,Each grid’s data was loaded by ajax.So the time of the webpage loading is long,maybe 3 to 5 seconds.during this time,you can only see the white color on the screen.End-user experience is not good.
In order to promote the End-user experience,i want place a ‘gif’ picture on the screen during the webpage loading time.After the page was loaded,the picture will be hidden.
How can i do?
Below is my brief code.
var grid_F1001 = {
view:'grid', id:'grid_F1001',select:true,sorting:false,
fields:[
{
id:'msu_name',
label:'msu_name',
width:170
},
...
]
,
datatype:"json",
url:"myurl.do?getdata=1"
};
var grid_F1002 = ...;
var grid_F1003 = ...;
var grid_F1004 = ...;
var grid_F1005 = ...;
var grid_F1006 = ...;
var grid_F1007 = ...;
var grid_F1008 = ...;
var grid_F1009 = ...;
dhx.ready(function(){
dhx.ui.fullScreen();
dhx.ui({
view:"window",
body:{
view:"carousel",
id:"carousel",
cols:[
grid_F1001,grid_F1002,grid_F1003,grid_F1004,grid_F1005,grid_F1006,grid_F1007,grid_F1008,grid_F1009
],
panel:{
align:"bottom"
}
}
});
});