Mar 10, 2016, 8:58 AM
[CLOSED] Panel Loader 404 when IIS is down
Hello,
i have a loader in an EXT Panel directing to "DataGrid.aspx" . When IIS is down and i click on the panel , the loader will show the 404 page not found.
Is there any way to check if IIS is down before loading or executing the loader?
Code Example:
for (var i = 0; i < snapsTitle.length; i++) {
var pid = "panel" + i;
var panel = Ext.create('Ext.panel.Panel', {
title: snapsTitle[i],
id: pid,
height: 600,
flex: 1,
layout: 'fit',
baseCls: 'PanelsStyle',
loader: {
url: 'DataGrid.aspx',
renderer: "frame",
mode: 'frame',
params: { sanpshotindex: i, Language: ln },
autoload: true,
callback: function (img, success, response, opts) {
if (!success) {
alert('here');
}
}
}
i have a loader in an EXT Panel directing to "DataGrid.aspx" . When IIS is down and i click on the panel , the loader will show the 404 page not found.
Is there any way to check if IIS is down before loading or executing the loader?
Code Example:
for (var i = 0; i < snapsTitle.length; i++) {
var pid = "panel" + i;
var panel = Ext.create('Ext.panel.Panel', {
title: snapsTitle[i],
id: pid,
height: 600,
flex: 1,
layout: 'fit',
baseCls: 'PanelsStyle',
loader: {
url: 'DataGrid.aspx',
renderer: "frame",
mode: 'frame',
params: { sanpshotindex: i, Language: ln },
autoload: true,
callback: function (img, success, response, opts) {
if (!success) {
alert('here');
}
}
}
Last edited by fabricio.murta; Mar 22, 2016 at 11:25 PM.
Reason: no user feedback for 7+ days