![]() | \n";
str = str +" \n"; str = str +" | ![]() | \n";
str = str +" \n"; str = str +" | ![]() | \n";
str = str +"
\n"; str = str +" | "+ _T("Test Status") +": | \n";
str = str +" \n"; str = str +" | \n";
str = str + message;
str = str + " "; str = str + " | \n";
str = str +" \n"; str = str +" |
![]() | \n";
str = str +" \n"; str = str +" | ![]() | \n";
str = str +" \n"; str = str +" | \n"; str = str +" |
" + _T("Searching for HPNA NICs...")); UpdateProgressBar(15); GetNICs_request = new createXMLHttpRequest(); GetNICs_request.open('GET', '/index.cgi?script=cms_cgi&action=GetNICs', true); GetNICs_request.onreadystatechange = GetNICs_handle; GetNICs_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); GetNICs_request.send(null); } /********************************************************************************************** * GetNICs_handle() * * * * 1. If there are HPNA devices, we get a list of IPs * * (priority to the CMS IP configuration - Will be in the first line if exists) * * 2. Else, we get the string "None" * **********************************************************************************************/ function GetNICs_handle() { if (GetNICs_request.readyState != 4) { return; } //alert("GetNICs_handle() " + GetNICs_request.responseText); lines = GetNICs_request.responseText.split('\n'); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // In case we didn't found any HPNA device connect to any NIC of this computer // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (removeNL(lines[0]) == "None") { SetBusy(false); UpdateStatusLine("
" + _T("local device(s) not found!") + "
" + _T("please check your cables and press the Refresh button."));
GetNICs_Parsing_Error();
Refresh_Page_After_InitConnection(false);
return;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
GetNICs_Parsing(lines);
// HpnaInit(false); // HPNA_INIT STOP
// GetLocalDevices();
Refresh_Page_After_InitConnection(true);
// HpnaInit(true);// HPNAINIT SATRT
}
/**********************************************************************************************
* GetLocalDevices() *
* *
* *
**********************************************************************************************/
/*function GetLocalDevices()
{
SetBusy(true);
LoadConfiguration(); // IP may change adter "GetNICs"
UpdateStatusLine("
" + _T("Searching for local HPNA device(s) IP address ") + "" + CMS_Configuration_ip + " ..."); UpdateProgressBar(30); GetLocalDevices_request = new createXMLHttpRequest(); //alert("Call GetLocalDevices()"); GetLocalDevices_request.open('GET', '/index.cgi?script=cms_cgi&action=GetLocalDevices', true); GetLocalDevices_request.onreadystatechange = GetLocalDevices_handle; GetLocalDevices_request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); GetLocalDevices_request.send(null); } */ /********************************************************************************************** * GetLocalDevices_handle() * * * * 1. We get a list of all the Local Devices that are connected to the CMS IP configuration * * (priority to the selected Local Device configuration * * 2. Else, we get the string "None" * **********************************************************************************************/ /*function GetLocalDevices_handle() { if (GetLocalDevices_request.readyState != 4) { return; } lines = GetLocalDevices_request.responseText.split('\n'); //alert("GetLocalDevices_handle: "+lines); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // In case no device is found // Handle cases when the user powering off the device while refreshing the page // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (removeNL(lines[0]) == "None") { SetBusy(false); UpdateStatusLine("
" + _T("GetLocalDevices (address) for IP address") + " " + CMS_Configuration_ip + " " + _T("failed") + " !!!
" + _T("please check your device(s) and press the Refresh button.") + "");
GetLocalDevices_Parsing_Error();
Refresh_Page_After_InitConnection(false);
HpnaInit(true); // HPNAINIT SATRT
return;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
GetLocalDevices_Parsing(lines);
// Found device(s) ?
if (LocalDevices_Array.length > 0)
{
Refresh_Page_After_InitConnection(true);
}
else
{
Refresh_Page_After_InitConnection(false);
}
HpnaInit(true);// HPNAINIT SATRT
}
*/
/**********************************************************************************************
* Update_Refresh_Button() *
* *
* Add a refresh button in the span "spnButton" *
**********************************************************************************************/
function Update_Refresh_Button(bShowLastResult)
{
var bodyContent = "";
bodyContent = bodyContent + "