[ptt-users] Ignoring content as not HTML
Haya Kuperman
hkuperman at nextnine.com
Mon Nov 13 23:25:57 PST 2006
Hi All,
I have a Problem running the recorded test,
Getting Ignoring content as not HTML,
I noticed it happens when I am passing between pages
Here is the log file
<testmaker version="126">
<message date="1163003791147"><![CDATA[reginfomozila3: Initialize]]></message>
<message date="1163003791147"><![CDATA[test: setUp]]></message>
<message date="1163003791147"><![CDATA[test: runTest]]></message>
<message date="1163003791178"><![CDATA[Request step: 1, http://192.168.201.151:8449/Server.class/SiteRef_Entry?]]></message>
<message date="1163003791459"><![CDATA[<Html><Head>
<script src="SiteRef_getJS?JSName=Site\win_functions.js"></script>
<script src="SiteRef_getJS?JSName=Site\MessagesConstants.js"></script>
<script type="text/javascript"> var ID = "049050056054052053057062065058061059063"; function useID(){setCookie("User",ID);} useID();
window.location = "SiteRef_Main";
window.name = "Main";
</script>
</Head></Html>
]]></message>
<message date="1163003791506"><![CDATA[ Parsing images]]></message>
<message date="1163003801022"><![CDATA[Request step: 2, http://192.168.201.151:8449/Server.class/SiteRef_getJS]]></message>
<message date="1163003801084"><![CDATA[ function turnToWait( img)
{
if( !isWaitingForSend)
{
isWaitingForSend = true;
_lastSrc = img.src;
_lastTitle = img.title;
img.src = _oWaitImage.src;
img.title = c_WAIT_TITLE;
}
}
function unWait( img )
{
if( isWaitingForSend)
{
img.src = _lastSrc;
img.title = _lastTitle ;
isWaitingForSend = false;
}
}
function InitSizes()
{
if(IE)
{
WinWidth = document.body.clientWidth;
WinHeight = document.body.clientHeight
}
else
{
WinWidth=innerWidth;
WinHeight=innerHeight
}
}
function PageOnload(documentTitle,pageTitle,helpCTX,selectedLink)
{
alert("Need To change");
}
function PageOnload(documentTitle,pageTitle,helpCTX)
{
top.timeOutCounter = 10;
top.document.title = documentTitle;
top._title = pageTitle;
top.helpURL = helpCTX;
}
function PageLoadedHandler()
{
var successCounter = 0;
if ( top.isLogoUp )
{
top.topFrame.updateTitle(top._title);
successCounter++;
}
if( successCounter = 2)
top.timeOutCounter = 1;
top.timeOutCounter--;
if( top.timeOutCounter == 0)
window.clearInterval(top._timeOutID);
}
function maximizeWin()
{
if(window.screen)
{
var aw = screen.availWidth;
var ah = screen.availHeight;
window.moveTo(0,0);
window.resizeTo(aw,ah);
}
}
function getLeftWinOPos(width)
{
if(window.screen)
return (window.screen.availWidth - width) / 2;
}
function getTopWinOPos(height)
{
if(window.screen)
return (window.screen.availHeight - height) / 2;
}
function getCenteredWinProperties(size)
{
if( size == c_MINI_WINDOW_SIZE)
{
c_LEFT_WIN_POS = getLeftWinOPos(c_MINI_WIDTH);
c_TOP_WIN_POS = getTopWinOPos(c_MINI_HEIGHT);
c_MINI_WINDOW = c_WIN_PROPERTIES +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS+",width=" + c_MINI_WIDTH + ",height=" + c_MINI_HEIGHT
return c_MINI_WINDOW;
}
else if( size == c_SMALL_WINDOW_SIZE)
{
c_LEFT_WIN_POS = getLeftWinOPos(c_SMALL_WIDTH);
c_TOP_WIN_POS = getTopWinOPos(c_SMALL_HEIGHT);
c_SMALL_WINDOW = c_WIN_PROPERTIES +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_SMALL_WIDTH + ",height=" + c_SMALL_HEIGHT
return c_SMALL_WINDOW;
}
else if (size == c_MED_WINDOW_SIZE )
{
c_LEFT_WIN_POS = getLeftWinOPos(c_MED_WIDTH);
c_TOP_WIN_POS = getTopWinOPos(c_MED_HEIGHT);
c_MED_WINDOW = "scrollbars,resizable=yes" +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_MED_WIDTH +",height=" + c_MED_HEIGHT;
return c_MED_WINDOW;
}
else if (size == c_BIG_WINDOW_SIZE )
{
c_LEFT_WIN_POS = getLeftWinOPos(c_BIG_WIDTH);
c_TOP_WIN_POS = getTopWinOPos(c_BIG_HEIGHT);
c_BIG_WINDOW = "scrollbars,resizable=yes" +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_BIG_WIDTH +",height=" + c_BIG_HEIGHT;
return c_BIG_WINDOW;
}
else if (size == c_LARGE_WINDOW_SIZE )
{
c_LEFT_WIN_POS = getLeftWinOPos(c_LARGE_WIDTH);
c_TOP_WIN_POS = getTopWinOPos(c_LARGE_HEIGHT);
c_LARGE_WINDOW = "scrollbars,resizable=yes" +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_LARGE_WIDTH +",height=" + c_LARGE_HEIGHT;
return c_LARGE_WINDOW;
}
}
function launchCenter(win,width,height)
{
if(win.screen)
{
var aw = win.screen.availWidth - width;
var ah = win.screen.availHeight - height;
var xc = aw / 2;
var yc = ah / 2;
win.moveTo(xc,yc);
}
}
function centerAndResizeWin(win)
{
if(win.screen)
{
var width = win.screen.availWidth * 3 / 4 ;
var height = win.screen.availHeight *3 /4;
launchCenter(win,width,height)
}
}
function Refresh()
{
window.location.reload(true);
}
function Close()
{
window.close();
}
function Cancel()
{
window.close();
}
function openWindow(url,size,targetFrame)
{
var winName = "";
if( targetFrame )
{
if( targetFrame != "")
winName = targetFrame;
}
newWindow = window.open(url,winName,getCenteredWinProperties(size));
return newWindow;
}
function openSelf(url)
{
window.location = url;
}
function SameWindow(url,par)
{
window.location = url + par;
}
function enableObj(obj, bEnabled)
{
obj.disabled = !bEnabled;
if (bEnabled)
obj.style.background = c_ENA_BG;
else
obj.style.background = c_DIS_BG;
}
function disableInput(obj)
{
obj.disabled = "true"
//obj.style.color = c_DIS_COLOR;
obj.style.background = c_DIS_BG;
}
function disableCheckBox(obj)
{
obj.disabled = "true";
}
function enableInput(obj)
{
obj.disabled = "";
//obj.style.color = c_ENA_COLOR;
obj.style.background = c_ENA_BG;
}
function enableCheckBox(obj)
{
obj.disabled = "";
}
function getUniqueNumber()
{
date = new Date();
return date.getMinutes()*60000 + date.getSeconds() * 1000 + date.getMilliseconds() ;
}
function CloseTop()
{
top.Close();
}
function ReloadTop()
{
top.reload();
}
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}
// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) {
var dc = top.document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else
begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}
function deleteCookie(name, path, domain) {
if (getCookie(name)) {
top.document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
function checkIfValidName( str )
{
//returns true if the string is a valid name attribute of html: starts with a letter char and followed by a letter(s) or a digit(s)
var patern = /^[a-zA-Z_][a-zA-Z_0-9]*$/;
return patern.test (str);
}
function getHiddenInput ( name , value )
{
if( !checkIfValidName( name ) )
return "";
var sI = sInput + "name=\"" + name + "\" value=\"\" " + cInput + "\n";
var sScript = "";
if( value != "")
{
sScript = "<script type=\"text\/javascript\">" +
"document.forms[0]."+ name + ".value=\"" + fnsPrepareJScriptString(value) + "\";" +
"<\/script>";
}
return ( sI + sScript);
}
function getHiddenInputWithID ( name , value ,id )
{
if( !checkIfValidName( name ) )
return "";
var sScript ="";
var sI = sInput + "name=\"" + name + "\" value=\"\" id=\"" + id + "\" " + cInput + "\n";
if( value != "")
{
sScript = "<script type=\"text\/javascript\">" +
"document.forms[0]."+ name + ".value=\"" + fnsPrepareJScriptString(value) + "\";" +
"<\/script>";
}
return ( sI + sScript);
}
function addToArray(obj,par){ obj[obj.length] = par; }
function isArrayContains(obj, str)
{
for(var i=0;i< obj.length;i++)
if( obj[i] == str)
return true;
return false;
}
function AddUnderscore( str )
{
return str.replace( /_/g,"__");
}
function fnsPrepareJScriptString(sString)
{
sString = sString.replace(/\\/g, "\\\\");
sString = sString.replace(/\//g, "\\\/");
sString = sString.replace(/\n/g, "\\n");
sString = sString.replace(/\r/g, "\\r");
sString = sString.replace(/\t/g, "\\t");
sString = sString.replace(/\"/g, "\\\"");
return sString.replace(/\'/g, "\\\'");
}
function replaceAll(i_str, i_search, i_replace)
{
res = i_str.replace(i_search, i_replace);
while (i_str != res)
{
i_str = res;
res = i_str.replace(i_search, i_replace);
}
return i_str;
}
function SubmitToNewWindow()
{
document.forms[0].target = c_HIDDEN_FRAME_NAME;
document.forms[0].submit();
}
function NNconfirm(msg,i_header)
{
var rep;
if (IE) {
rep = launchMsgDialog(msg, true, false, i_header);
}
else {
rep = confirm(msg);
}
return rep;
}
function NNprompt(msg,i_header)
{
var rep;
if (IE)
{
msg = msg + confirmInput;
var header;
if( typeof i_header != "undefined" )
header = i_header;
else
header = c_DEFAULT_PROMPT_HEADER;
rep = launchMsgDialog(msg, true, false, header);
}
else
{
var res = prompt(msg);
/* create result object like explorer */
rep = new Object();
if (res == null) {
rep.bOk = false;
rep.sConfValue = null;
}
else {
rep.bOk = true;
rep.sConfValue = res;
}
}
return rep;
}
function fnMessageBox(sMessageCaption, sMessageString)
{
alert( sMessageString , sMessageCaption );
}
function NNalert(msg,i_header)
{
var rep;
if (IE)
{
rep = launchMsgDialog(msg, false, false, i_header);
}
else
{
rep = true;
alert(msg);
}
return rep;
}
function launchMsgDialog(msg, isConfirmMsg, isReturnMessage, i_header)
{
var iHeight = c_SMALL_HEIGHT;
var iWidth = c_SMALL_WIDTH;
var obj = new Object();
var rep;
var src;
if (isReturnMessage)
{
src = "SiteRef_getHtml?HtmlName=SiteLogin\\Modal.html";
}
else
{
src = "SiteRef_getHtml?HtmlName=SiteLogin\\acModal.html";
}
if (isConfirmMsg)
{
/* 1 for alert, 0 for confirm */
obj.type = 0;
var titleBar = c_DEFAULT_CONFIRM_HEADER;
}
else
{
/* 1 for alert, 0 for confirm */
obj.type = 1;
var titleBar = c_DEFAULT_ALERT_HEADER;
}
/* set a header */
if( typeof i_header != "undefined" )
var header = i_header;
else
var header = titleBar;
obj.title = titleBar;
obj.message = msg;
obj.header = header;
if(IE)
{
iHeight = iHeight + "px";
iWidth = iWidth + "px";
/* Set the window features */
var windowFeatures = "dialogWidth=" + iWidth + ";dialogHeight=" + iHeight + ";center=yes;help=no;status=no";
rep = NNshowModalDialog( src, obj, windowFeatures) ;
}
else
{
/* for netscape dialog windows */
///* Set the window features */
//var windowFeatures = "dependent=yes,width=" + iWidth + ",height=" + iHeight + ",status=no,titlebar=" + titleBar;
//rep = NNshowModalDialog( src, obj, windowFeatures) ;
msg = replaceAll(msg, "_RM_NEW_LINE_", "\r\n");
msg = replaceAll(msg, "_APAS_", "'"); // set apastroph delimiter
msg = replaceAll(msg, "%20", " "); // set spaces
msg = replaceAll(msg, "%28", "("); // set left parentheses
msg = replaceAll(msg, "%29", ")"); // set right parentheses
msg = replaceAll(msg, "%2C", ","); // set comma
msg = replaceAll(msg, "%3A", ":");
rep = new Object();
rep.isOk = true;
if (isConfirmMsg)
{
rep.isOk = confirm(msg);
}
else
alert(msg);
}
return rep;
}
/* for netscape dialog windows */
var winModalWindow;
/* for netscape dialog windows */
function IgnoreEvents(e)
{
return false;
}
/* for netscape dialog windows */
function HandleFocus()
{
if (winModalWindow)
{
if (!winModalWindow.closed)
{
winModalWindow.focus();
}
else
{
if(! IE){
window.top.topFrame.releaseEvents (Event.CLICK|Event.FOCUS);
window.top.bottomFrame.releaseEvents (Event.CLICK|Event.FOCUS);
window.top.topFrame.onclick = "";
window.top.topFrame.onfocus="";
window.top.bottomFrame.onclick = "";
window.top.bottomFrame.onfocus="";
}else{
window.onclick="";
window.onfocus="";
}
}
}
return false;
}
function NNshowModalDialog(src ,obj, sWindowFeatures, winName )
{
if (window.showModalDialog)
{
return window.showModalDialog(src, obj, sWindowFeatures);
}
else
{
//
if(window.top.bottomFrame)
{
window.top.bottomFrame.captureEvents (Event.CLICK|Event.FOCUS);
window.top.bottomFrame.onclick=IgnoreEvents;
window.top.bottomFrame.onfocus=HandleFocus;
window.top.topFrame.captureEvents (Event.CLICK|Event.FOCUS);
window.top.topFrame.onclick=IgnoreEvents;
window.top.topFrame.onfocus=HandleFocus;
}
else
{
window.top.captureEvents (Event.CLICK|Event.FOCUS);
window.top.onclick=IgnoreEvents;
window.top.onfocus=HandleFocus;
}
if(winName ==null){
winName = "ModalChild";
}
winModalWindow = window.open(src,winName , sWindowFeatures);
/* set the dialog arguments */
winModalWindow.oDialogArguments = obj;
winModalWindow.focus();
return winModalWindow;
}
}
function showWinAsModal(src ,obj, sWindowFeatures)
{
if (! IE){
window.top.bottomFrame.captureEvents (Event.CLICK|Event.FOCUS);
window.top.topFrame.captureEvents (Event.CLICK|Event.FOCUS);
window.top.bottomFrame.onclick=IgnoreEvents;
window.top.bottomFrame.onfocus=HandleFocus;
window.top.topFrame.onclick=IgnoreEvents;
window.top.topFrame.onfocus=HandleFocus;
}
else{
window.onclick=IgnoreEvents;
window.onfocus=HandleFocus;
}
winModalWindow = window.open(src,"ModalChild", sWindowFeatures);
/* set the dialog arguments */
winModalWindow.oDialogArguments = obj;
winModalWindow.focus();
return winModalWindow;
}
function strltrim(str) {
return str.replace(/^\s+/,'');
}
function strrtrim(str) {
return str.replace(/\s+$/,'');
}
function strtrim(str) {
return str.replace(/^\s+/,'').replace(/\s+$/,'');
}
]]></message>
<message date="1163003801084"><![CDATA[ (Ignoring content as not HTML)]]></message>
<message date="1163003811210"><![CDATA[Request step: 3, http://192.168.201.151:8449/Server.class/SiteRef_getJS]]></message>
<message date="1163003811241"><![CDATA[var c_EASTER_EGG_ENABLE = false;
var c_AMP_DEL = "&";
var c_WAIT_IMAGE_LINK = "SiteRef_getPicture?PictureName=Site/big_btn_wait.gif";
var c_WAIT_TITLE = "Wait";
var _oWaitImage = new Image();
_oWaitImage.src = c_WAIT_IMAGE_LINK;
var _lastSrc;
var _lastTitle;
/* Messages Constants */
/**********************/
var c_ABORT_CP_CONFIRM_MESSAGE = "The profile will be stopped gracefully to prevent disruption to the device. This may take up to a few minutes depending on execution conditions. Are you sure that you want to continue?";
var c_ACTIVATE_ONCE_ALERT = "Currently running profiles need to be paused in order to allow the requested profile to be activated now. This may take up to a few minutes";
var c_COLLECT_NOW_ALERT = "Currently running profiles need to be paused in order to allow execution of data now. This may take up to a few minutes";
var c_LIMIT_RESULT_MSG = "This value must be between 1 and 65535.";
var c_ILLEGAL_TIME_PERIOD = "The \'From Date\' must be earlier or the same as the \'To Date\'.";
var c_ILLEGAL_TIME_PERIOD_CURRENT = "The \'To Date\' must be later then the current date.";
var c_ILLEGAL_TIME_PERIOD_CAPTION = "Illegal Time Period Selected";
var c_ILLEGAL_HOUR = "The Hours field must contain a number between 0 and 23";
var c_ILLEGAL_MINUTES = "The Minutess field must contain a number between 0 and 59";
var c_DELETE_DEVICE_MESSAGE = "When you delete a device, all the execution results for that device are cancelled. Are you sure you want to delete the device?";
var c_DELETE_PL_MESSAGE = "When you delete a Product Line, all the devices of the Product Line are deleted, all running executions on these devices are terminated, and all their results will be deleted. Are you sure that you want to delete this Product Line?";
var c_NO_DEVICES_WERE_SELECTED_MESSAGE = "You must select one or more devices to continue.";
var c_MUST_SELECT_REMOTE_MSG = "You must choose a Service Center to receive this Report.";
var c_CHANGED_SETTINGS = " When you change the properties of a device, all the executions running on the device are updated. Are you sure that you want to continue?";
var c_CHANGED_SETTINGS_FOR_PL = " When you change the properties of a product line, all the executions running on all the devices of this product line are updated. Are you sure that you want to continue?";
var c_GENERAL_CONFIRM_MESSAGE = "If you leave this page, you will lose any changes you made. Are you sure you want to continue?" ;
var c_EMPTY_TABLE_MSG = "You cannot perform an action when the table is empty.";
var c_UNACTIVE_MSG = "Inactive profile(s) can not be deactivated.";
var c_ACTIVE_MSG = "Active profile(s) can not be reactivated.";
var c_NO_TEMPLATE_MSG = "No profile(s) were selected.";
var c_NO_DEVICES_MSG = "No device(s) were selected.";
var c_MAKE_DEFAULT_TEMPLATE_MSG = "This profile is already the default profile.";
var c_DELETE_DEFAULT_TEMPLATE_MSG = "The default profile can not be deleted.";
var c_NO_REMOTE_MSG = "There are no Service Centers defined in the system; this report cannot be sent until you define one or more Service Centers.";
var c_CONFIRM_DELETE_REPORT_MSG = "Are you sure you want to delete this Report? ";
var c_ALTERED_DEVICES_SELECTION_CONFIRM = "Proceeding with this action may affect your Execution Result selection.";
var c_CAN_NOT_SEND_TO_MANUAL_MSG = "You can not send to a Service Center which uses manual communication. Export the report instead.";
var c_NO_COLLECTIONS_FOR_REPORT_MSG = "No execution result were selected, so no problem Report was created.";
var c_NOTIFY_ABOUT_MASTER_MSG = "Service Center was set to be the master, please send the registration file to the new master Service Center to update all communication parameters.";
var c_NOTIFY_MANUAL_METHOD_MSG = "Please inform the Service Center of the change in communication method by sending a registration file.";
var c_NOTIFY_INACTIVE_SERVER = "Changing the Service Center state to Inactive will disable all communication with this Service Center. Are you sure you want to continue?";
var c_ILLEGAL_VENDOR_ID = "The Service Center ID must be an integer.";
var c_ALERT_SAME_ADDRESS = "The Remote Access address cannot be the same as the Communication Server address";
var c_CONFIRM_TURN_MANUAL_TO_MASTER = "In manual communication method, all the messages in the \"pending message queue\" are deleted, are you sure you want to set this Manual Service Center as Master Service Center?";
var c_NOTIFY_MANUAL_MSG_ADD = "Communication with this Service Center was marked as manual, please export the registration file and send it manually.";
var c_DEVICE_SERIAL_COM_ILLEGAL = "This serial number is illegal, becuse of system limitations.";
var c_ILLEGAL_SYSLOG_PORT = "Illegal Syslog Port.";
var c_ILLEGAL_SYSLOG_QuOta = "Illegal Syslog Quota.";
var c_ILLEGAL_SNMP_PORT = "Illegal SNMP Port.";
var c_ILLEGAL_HTTP_PORT = "Illegal HTTP Port.";
var c_ILLEGAL_SNMP_QuOta = "Illegal SNMP Quota.";
var c_NO_REASON_SELECTED = "You must select one or more report reasons before submitting the search.";
var c_NO_ACTIVATION_REASON_SELECTED = "You must select one or more activation reasons before submitting the search.";
var c_RESULT_SIZE_ILLEGAL = "Illegal result size.";
var c_PASSWORD_AT_LEAST = "The password must be at least 4 characters long.";
var c_MAX_REPORT_CAPACITY_SMALL="This operation will cause the deletion of Reports once a new Report will be created. Do you want to save anyway? ";
var c_HB_PARAM_LESS_THEN_MIN="The timeout value is less than the value specified by the system, ";
var c_HB_PARAM_MAX_VALUE = "The timeout value cannot be greater then 65535.";
var c_NO_PENDING_TO_REMOVE="There are no pending messages to delete.";
var c_OUTGOING_USER_MISSING="Outgoing Server user missing.";
var c_OUTGOING_PASSWORD_MISSING="Outgoing Server password missing.";
/************************/
var c_INT = 2147483647; /* 32 bits */
var c_U_INT = 65536; /* 16 bits */
var c_ONLOAD_INTERVAL = 500;
var sInput = "<input type=\'hidden\' ";
var fInput = "<input type=\'file\' ";
var cInput = " />";
var c_SELECTED_STR = "on";
var c_HIDDEN_FRAME_NAME = "HiddenFrameForRM";
/* Windows properties */
/*********************/
var c_MINI_WINDOW_SIZE = "mini";
var c_SMALL_WINDOW_SIZE = "small";
var c_MED_WINDOW_SIZE = "med";
var c_BIG_WINDOW_SIZE = "big"; /** For the Online help window **/
var c_LARGE_WINDOW_SIZE = "large";
var c_MINI_HEIGHT = "340";
var c_MINI_WIDTH = "480";
var c_SMALL_HEIGHT = "310";
var c_SMALL_WIDTH = "470";
var c_MED_HEIGHT = "580";
var c_MED_WIDTH = "900";
var c_BIG_HEIGHT = "580";
var c_BIG_WIDTH = "870";
var c_LARGE_HEIGHT = "580";
var c_LARGE_WIDTH = "1000";
/** Height and width of the data collection view dialog screen **/
var c_DCV_HEIGHT = "600";
var c_DCV_WIDTH = "960";
var c_TASK_HEIGHT = "485";
var c_TASK_WIDTH = "550";
var WinWidth, WinHeight;
/* only IE */
var c_TOP_WIN_POS = "0";
var c_LEFT_WIN_POS = "0";
/***********/
var c_WIN_PROPERTIES = "scrollbars=auto,modal=yes,resizable=no";
var c_MINI_WINDOW = c_WIN_PROPERTIES +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_MINI_WIDTH + ",height=" + c_MINI_HEIGHT;
var c_SMALL_WINDOW = c_WIN_PROPERTIES +",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +",width=" + c_SMALL_WIDTH + ",height=" + c_SMALL_HEIGHT;
var c_MED_WINDOW = c_SMALL_WINDOW + ",top=" + c_TOP_WIN_POS +",left=" + c_LEFT_WIN_POS +"width=" + c_MED_WIDTH +",height=" + c_MED_HEIGHT;
var c_SMALL_HEIGHT_PX = "350";
var c_SMALL_WIDTH_PX = "605";
var c_LARGE_HEIGHT_PX = "580";
var c_LARGE_WIDTH_PX = "1000";
var c_CALENDAR_WINDOW_NAME = "cal";
var c_SEARCH_WINDOW_NAME = "search";
var c_DEVICES_SEARCH_WINDOW_NAME = "DevicesSearch";
var c_LINK_FOR_MANAGER = "SiteRef_getHtml?HtmlName=Manager.nnh";
var c_MAIN_LINK_FOR_MANAGER_RIGHT_FRAME = "DeviceRef_DeviceList";
var isHandleMessage = false;
/* alert/confirm/prompt consts */
var c_CONFIRM_INPUT_TXT_NAME = "ConfirmText";
var confirmInput = "<input type=\"password\" name=\"" + c_CONFIRM_INPUT_TXT_NAME + "\" value=\"\"/>";
/* Browser detection */
var agt=navigator.userAgent.toLowerCase();
var IE = (document.all) ? true:false ;
var IE4 = IE && (agt.indexOf("msie 4")!=-1) ?true:false;
var IE5 = IE && (agt.indexOf("msie 5")!=-1) ?true:false;
var IE55 = IE && (agt.indexOf("msie 5.5")!=-1) ?true:false;
var IE6 = IE && (agt.indexOf("msie 6")!=-1) ?true:false;
var NN4 = (!document.all && document.layers)? true:false ;
//var NN6 = (!document.all && !document.layers && document.getElementById)? true:false;
var NN6 = (!IE && (agt.indexOf("netscape/6")!=-1))? true:false;
var NN7 = (!IE && (agt.indexOf("netscape/7")!=-1))? true:false;
/* Input text style sheet */
var c_ENA_COLOR = "black";
var c_DIS_COLOR = "#808080";
var c_ENA_BG = "white";
var c_DIS_BG = "#D4D0C8";
/* Modal consts */
var c_DEFAULT_CONFIRM_TITLE = "Site Server";
var c_DEFAULT_CONFIRM_HEADER = "Confirm Action";
var c_DEFAULT_ALERT_TITLE = "Site Server";
var c_DEFAULT_ALERT_HEADER = "Alert Action";
var c_DEFAULT_PROMPT_HEADER = "New Value Confirmation";
/* Sorting const */
var c_ORDER_ASCENDING = "ascending";
var c_ORDER_DESCENDING = "descending";
function HandleMouse ()
{
if (event.button == 2)
{
//alert('No context menu.');
window.focus();
return false;
}
}
function HandleKey(e)
{
/* Disabling 'esc' */
if(event.keyCode == '27') { return false; }
/* Disabling cntrl+'n' */
else if( event.ctrlKey)
{ if(event.keyCode == 78) return false; }
/* handling "enter" */
else if(event.keyCode == '13' )
{
if( event.srcElement.tagName != "TEXTAREA" )
{
if( (temp = typeof enterKeyEventFunction)!= "undefined")
enterKeyEventFunction();
return false;
}
}
/* handling 'Backspace' */
else if( event.keyCode == '8')
{
if( !(event.srcElement.tagName == "INPUT" &&
(event.srcElement.type == "text" || event.srcElement.type == "password")
) && event.srcElement.tagName != "TEXTAREA" )
return false;
}
/* handling 'F5' */
else if( event.keyCode == '116' )
{
if( (temp = typeof top.refreshEventFunction)!= "undefined")
{
top.refreshEventFunction();
event.keyCode = 0;
return false;
}
else
{
Refresh();
}
}
/* handling 'F1' */
/* COULD NOT OVERRIDE IE 'F1' */
else if( c_EASTER_EGG_ENABLE)
{
/* handling 'SHIFT + c': retreives a device's body */
if(event.keyCode == '67' && window.event.shiftKey)
{
var devID="",colID="";
for(var i=0;i < document.forms[0].elements.length ;i++)
{
if( document.forms[0].elements[i].type == "checkbox" && document.forms[0].elements[i].checked )
{
devID = document.forms[0].elements[i].id;
if( typeof devID == "undefined")
break;
colID = document.forms[0].elements[i].name;
if( devID != "" && colID != "" )
window.open("TemplateRef_getDCBody?DevID=" + devID + c_AMP_DEL + "ColID=" + colID);
}
}
}
/* handling 'SHIFT + d': retreives a device's body */
else if(event.keyCode == '68' && window.event.shiftKey)
{
var devID="";
for(var i=0;i < document.forms[0].elements.length ;i++)
{
if( (document.forms[0].elements[i].type == "checkbox" || document.forms[0].elements[i].type == "radio") && document.forms[0].elements[i].checked )
{
devID = document.forms[0].elements[i].value;
if( typeof devID == "undefined")
break;
if( devID != "" )
window.open("TemplateRef_getDevBody?DevID=" + devID );
break;
}
}
}
/* handling 'SHIFT + x': retreives the page xml */
else if(event.keyCode == '88' && window.event.shiftKey)
{
url = new String( window.location );
if( url.charAt(url.length-1) != '?')
url += "&";
window.open(url + "NextNineXmlDebug=1" );
}
/* handling 'SHIFT+ l': open the site.log content */
else if(event.keyCode == '76' && window.event.shiftKey)
{
window.open("SiteRef_getSiteLog?");
}
/* handling 'SHIFT+ h': open the hotkey index */
else if(event.keyCode == '72' && window.event.shiftKey)
{
var str = "";
str += "SHIFT + c: retreives the selected collection(s) data body<br/>";
str += "SHIFT + d: retreives the selected Device xml <br/>";
str += "SHIFT + x: retreives the current page xml <br/>";
str += "SHIFT + l: retreives site.log content<br/>";
NNalert( str , "Hotkey Help Index");
}
}
}
if(!IE)
{
window.captureEvents(Event.KEYDOWN);
window.onkeydown=HandleKey;
}
document.onkeydown=HandleKey;
//document.onmousedown =HandleMouse;
var oldAlert = alert;
]]></message>
<message date="1163003811241"><![CDATA[ (Ignoring content as not HTML)]]></message>
<message date="1163003818256"><![CDATA[Request step: 4, http://192.168.201.151:8449/Server.class/SiteRef_getPicture]]></message>
<message date="1163003819147"><![CDATA[GIF89a( ז? ????עז?כ׳?אֳ??µ?ׂ×?־£?ֻ??ָ™?ֶ–?ֵ•?ִ’?ֲ??¾{?¼‡?÷‚?÷~?¹??¸Y?µ{?´z?³x?¯q?«n?§i?¥F?£&??¢_??Y?ֱ???Uת”Qר?Iר‹Eרsק¾?צ†?ץ?;פ}6ף?ֶף»‹ףy3סu0סq(נr-ןm(מ·ˆםg%םP לc"ך´†ך_חֹ¬חUז²†ז±„ג®??«?×?¨}ײ₪{ׁ¡xֿ?wּ?uָ?sַ™rִ—p¿“m»?k·?i³?f׃a©©©©‚a¦€_¢}]¡|\™vX•sU? [1]?lPˆiN„eL€bIbI|_G{_Fx\EtYBsXBnU?kR=jQ=fN:bK8^H6^@‑ZE4VB1Q>.L:,H7)D4'@1%<.";-"4(‑/$.#+!* &"
ְְְ !ש
________________________________
x , ( @?€I‚Ia…†‡ˆ‰?‡ƒ„
________________________________
[1][1]
________________________________
t3 eV[
=k $GK:”? V`˜•
%0†
´µ¶·¸¹
",4…„?[1]
________________________________
________________________________
________________________________
________________________________
?ֻּֽ־?
!'a??’« lk7
?il L[ lD rהV•«
¯±ƒ…#,.0ש4ת?0?ׁ
________________________________
?µF…’ˆֶסֳ‡:°€¡ƒ0B5P#םFJ/†?(¥?R)“&HsuֲE¡G‘&©|2…ˆ˜
________________________________
kt€A2ƒ‰‑g„0€ֳ?«J@ְ*d @²m*?E5×#ךׁ
________________________________
3H¨lx!
________________________________
°k…@ˆ¢¬?³h׃?-Q‚
גׂ ¡A-»»hב?«·¯ƒ
6ִ%ֶ״1e+^ּ¸qb¼:ˆז‡€
8?ּ™¡¥†`jKא©ׂ;F*ױֱפ?)
?&]Z8?$Jb?
%1מֹ?[²ָ©
‡A?5D¦ֲ“קׂ¶If¬0I0E
?$־°)ƒ.Aq&S¶UrE›€1?Fˆש₪ׂ?9אˆ;ƒִ;
________________________________
"t–¸CZ-Vו
________________________________
D“Tן(gױ~¬LְA .ְE
\ְVhב…^ָ"¬@ƒƒr…ֱײ $–hג‰(?טײ‡ƒ…¸ָ‹0ׂH ;
]]></message>
<message date="1163003820053"><![CDATA[ (Ignoring content as not HTML)]]></message>
<message date="1163003827288"><![CDATA[Request step: 5, http://192.168.201.151:8449/Server.class/SiteRef_Main]]></message>
<message date="1163003827366"><![CDATA[<Html>
<Head>
<LINK REL="STYLESHEET" HREF="http://192.168.201.151:8449/Server.class/SiteRef_getCSS?CSSName=Site/site.css" TYPE="text/css"/><script src="SiteRef_getJS?JSName=Site\win_functions.js"></script>
<script src="SiteRef_getJS?JSName=Site\MessagesConstants.js"></script>
<script type="text/javascript">
function Onload(){document.forms[0].MessageText.value = escape("At present, you are not logged in to the Site Server. Either you tried to access the system (through a link) before logging in, or an error occurred during your work session._RM_NEW_LINE_ _RM_NEW_LINE_To use the Site Server, you must log in.");
if(typeof opener == "undefined" || opener == null){
SubmitToNewWindow();}
else{
document.forms[0].Target.value = "4";
SubmitToNewWindow();
}
}
</script>
</Head>
<Body onload="Onload();" class="GeneralBody">
<form action="http://192.168.201.151:8449/Server.class/SiteRef_getMessagePage?" >
<input type="hidden" name="Success" value="false"></input>
<input type="hidden" name="MessageText" value=""></input>
<input type="hidden" name="URL" value="http://192.168.201.151:8449/Server.class/SiteRef_Login"></input>
<input type="hidden" name="Target" value="8"></input>
<input type="hidden" name="Header" value="Login is required."></input>
</form>
<iframe name="HiddenFrameForRM" height="0" frameborder="0"></iframe></Body>
</Html>
]]></message>
<message date="1163003827382"><![CDATA[ Parsing images]]></message>
<message date="1163003833538"><![CDATA[test: tearDown]]></message>
</testmaker>
Thanks for the help,
Haya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20061114/1ed4b0c7/attachment-0001.htm
More information about the Users
mailing list