📄 lspushpage.java
字号:
/*
* LIGHTSTREAMER - www.lightstreamer.com
* Web Client - lspushpage.js - Version 4 Revision: 109 $
* Copyright (c) 2004-2006 Weswit Srl. All Rights Reserved.
*/
var LS_pushpageSrcRev=" 391 $";
if (typeof Context=="undefined")
{
alert("Warning: lscommons.js not included before lspushpage.js","pushpage");
if (!document.layers)
{
eval("throw('WARNING: lscommons.js NOT INCLUDED BEFORE lspushpage.js');");
}
}
LS_tJd.log("LC","pushpage",window.name);
function GroupDescriptor()
{
}
function LS_Sdn(LS_OFq)
{
if (LS_OFq==null)
{
return null;
}
else if (LS_OFq.LS_gsp)
{
return LS_OFq;
}
else if (LS_OFq.LS_tUL)
{
return LS_OFq;
}
else if (LS_OFq.join&&typeof(LS_OFq.join)=="function")
{
return new GroupListDescriptor(LS_OFq);
}
else
{
return new GroupIdDescriptor(LS_OFq);
}
}
function GroupIdDescriptor(LS_gsp)
{
this.LS_gsp=String(LS_gsp);
this.getId=LS_ilc;
this.LS_TPi=LS_RYP;
this.LS_Ddh=function(LS_slx)
{
return null;
}
;
this.LS_fjO=function()
{
return this.LS_gsp;
}
;
}
GroupIdDescriptor.prototype=new GroupDescriptor();
GroupIdDescriptor.prototype.constructor=GroupIdDescriptor;
function LS_ilc()
{
return this.LS_gsp;
}
function LS_RYP(LS_QSY)
{
if (LS_QSY==null)
{
return null;
}
else if (LS_QSY.LS_slx)
{
return LS_QSY.LS_slx;
}
else if (LS_QSY.LS_Yck)
{
return null;
}
else
{
var LS_ALf=Number(LS_QSY);
if (!isNaN(LS_ALf))
{
return LS_ALf;
}
else
{
return null;
}
}
}
function GroupListDescriptor(LS_wBk)
{
this.LS_tUL=new Array().concat(LS_wBk);
if (typeof(this.LS_tUL[0])!="undefined")
{
}
else
{
LS_AZt(this.LS_tUL);
}
this.LS_hpB=LS_aPV;
this.LS_iCM=LS_inh;
this.LS_TPi=LS_NtK;
this.LS_Ddh=function(LS_slx)
{
return this.LS_tUL[LS_slx-1];
}
;
this.LS_fjO=function()
{
return this.LS_tUL.join(" ");
}
;
this.LS_cSd={};
for (var LS_Jrl=0;LS_Jrl<this.LS_tUL.length;LS_Jrl++)
{
var name=String(this.LS_tUL[LS_Jrl]);
if (!this.LS_iCM(name))
{
name="item_name_error";
}
this.LS_tUL[LS_Jrl]=name;
this.LS_cSd[name]=Number(LS_Jrl)+1;
}
}
GroupListDescriptor.prototype=new GroupDescriptor();
GroupListDescriptor.prototype.constructor=GroupListDescriptor;
function LS_aPV()
{
var LS_NnC=[0].concat(this.LS_tUL);
delete LS_NnC[0];
return LS_NnC;
}
function LS_inh(LS_Yck)
{
if (LS_Yck==null||LS_Yck=="")
{
LS_tJd.LS_mvl("Item names cannot be empty","GroupListDescriptor");
return false;
}
if (!isNaN(Number(LS_Yck)))
{
LS_tJd.LS_mvl("Item names cannot be numbers","GroupListDescriptor");
return false;
}
if (LS_Yck.indexOf("|")!=-1||LS_Yck.indexOf(" ")!=-1)
{
LS_tJd.LS_mvl("Item names should be alphanumeric","GroupListDescriptor");
return false;
}
return true;
}
function LS_NtK(LS_QSY)
{
if (LS_QSY==null)
{
return null;
}
else if (LS_QSY.LS_slx)
{
return LS_QSY.LS_slx;
}
else if (LS_QSY.LS_Yck)
{
return this.LS_cSd[LS_QSY.LS_Yck];
}
else
{
var LS_ALf=Number(LS_QSY);
if (!isNaN(LS_ALf))
{
return LS_ALf;
}
else
{
LS_QSY=LS_QSY.toString();
return this.LS_cSd[LS_QSY];
}
}
}
function SchemaDescriptor()
{
this.LS_WFF=LS_sJW;
this.LS_tss=LS_MPc;
}
function LS_sJW(LS_xAZ)
{
if (typeof(LS_xAZ)=="string")
{
return null;
}
else
{
return LS_xAZ;
}
}
function LS_MPc(LS_xAZ)
{
if (typeof(LS_xAZ)=="string")
{
return true;
}
else
{
return LS_xAZ>this.LS_Wka();
}
}
function LS_SQv(LS_RNr)
{
if (LS_RNr==null)
{
return null;
}
else if (LS_RNr.LS_WtA)
{
return LS_RNr;
}
else if (LS_RNr.LS_FDk)
{
return LS_RNr;
}
else if (LS_RNr.join&&typeof(LS_RNr.join)=="function")
{
return new SchemaListDescriptor(LS_RNr);
}
else
{
return new SchemaIdDescriptor(LS_RNr);
}
}
function SchemaIdDescriptor(LS_WtA)
{
this.LS_WtA=String(LS_WtA);
this.LS_qAC=0;
this.getId=LS_jco;
this.LS_PGg=LS_utf;
this.LS_knP=function(LS_MtO)
{
return null;
}
;
this.LS_eAm=LS_HYt;
this.LS_qbt=function()
{
return this.LS_WtA;
}
;
this.LS_ZtI=function(size)
{
this.LS_qAC=size;
}
;
this.LS_Wka=function()
{
return this.LS_qAC;
}
;
}
SchemaIdDescriptor.prototype=new SchemaDescriptor();
SchemaIdDescriptor.prototype.constructor=SchemaIdDescriptor;
function LS_jco()
{
return this.LS_WtA;
}
function LS_utf(LS_Osi)
{
if (LS_Osi==null)
{
return null;
}
else if (LS_Osi.LS_Geg)
{
return LS_Osi.LS_Geg;
}
else if (LS_Osi.LS_MtO)
{
return escape(LS_Osi.LS_MtO);
}
else
{
var LS_ALf=Number(LS_Osi);
if (!isNaN(LS_ALf))
{
return LS_ALf;
}
else
{
return escape(LS_Osi);
}
}
}
function LS_HYt(LS_xAZ)
{
if (typeof(LS_xAZ)=="string")
{
return unescape(LS_xAZ);
}
else
{
return null;
}
}
function SchemaListDescriptor(LS_voc)
{
this.LS_FDk=new Array().concat(LS_voc);
if (typeof(this.LS_FDk[0])!="undefined")
{
}
else
{
LS_AZt(this.LS_FDk);
}
this.LS_hpB=LS_NKt;
this.LS_opX=LS_Vmw;
this.LS_PGg=LS_lZx;
this.LS_knP=function(LS_MtO)
{
return this.LS_cSd[LS_MtO];
}
;
this.LS_eAm=LS_obO;
this.LS_qbt=function()
{
return this.LS_FDk.join(" ");
}
;
this.LS_ZtI=function(size)
{
if (this.LS_FDk.length!=size)
{
LS_tJd.LS_feC(this.LS_FDk.length==size,'LS_ZtI');
}
}
;
this.LS_Wka=function()
{
return this.LS_FDk.length;
}
;
this.LS_cSd={};
for (var LS_Jrl=0;LS_Jrl<this.LS_FDk.length;LS_Jrl++)
{
var name=String(this.LS_FDk[LS_Jrl]);
if (!this.LS_opX(name))
{
name="field_name_error";
}
this.LS_FDk[LS_Jrl]=name;
this.LS_cSd[name]=Number(LS_Jrl)+1;
}
}
SchemaListDescriptor.prototype=new SchemaDescriptor();
SchemaListDescriptor.prototype.constructor=SchemaListDescriptor;
function LS_NKt()
{
var LS_NnC=[0].concat(this.LS_FDk);
delete LS_NnC[0];
return LS_NnC;
}
function LS_Vmw(LS_MtO)
{
if (LS_MtO==null||LS_MtO=="")
{
LS_tJd.LS_mvl("Field names cannot be empty","SchemaListDescriptor");
return false;
}
if (!isNaN(Number(LS_MtO)))
{
LS_tJd.LS_mvl("Field names cannot be numbers","SchemaListDescriptor");
return false;
}
if (LS_MtO.indexOf("#")==0)
{
LS_tJd.LS_mvl("Names starting with '#' cannot be used for subscribed fields","SchemaListDescriptor");
return false;
}
if (LS_MtO.indexOf("|")!=-1||LS_MtO.indexOf(" ")!=-1)
{
LS_tJd.LS_mvl("Field names should be alphanumeric","SchemaListDescriptor");
return false;
}
return true;
}
function LS_lZx(LS_Osi)
{
if (LS_Osi==null)
{
return null;
}
else if (LS_Osi.LS_Geg)
{
return LS_Osi.LS_Geg;
}
else if (LS_Osi.LS_MtO)
{
var code=this.LS_knP(LS_Osi.LS_MtO);
if (code!=null)
{
return code;
}
else
{
return escape(LS_Osi.LS_MtO);
}
}
else
{
var LS_ALf=Number(LS_Osi);
if (!isNaN(LS_ALf))
{
return LS_ALf;
}
else
{
var code=this.LS_knP(LS_Osi);
if (code!=null)
{
return code;
}
else
{
return escape(LS_Osi);
}
}
}
}
function LS_obO(LS_xAZ)
{
if (typeof(LS_xAZ)=="string")
{
return unescape(LS_xAZ);
}
else
{
return this.LS_FDk[LS_xAZ-1];
}
}
function ItemDescriptor()
{
}
function ItemNameDescriptor(LS_Yck)
{
this.LS_Yck=String(LS_Yck);
this.LS_FoS=LS_XGP;
this.toString=function()
{
return this.LS_Yck;
}
;
}
ItemNameDescriptor.prototype=new ItemDescriptor();
ItemNameDescriptor.prototype.constructor=ItemNameDescriptor;
function LS_XGP()
{
return this.LS_Yck;
}
function ItemPositionDescriptor(LS_slx)
{
this.LS_slx=Number(LS_slx);
this.LS_rWs=LS_Nem;
this.toString=function()
{
return String(this.LS_slx);
}
;
}
ItemPositionDescriptor.prototype=new ItemDescriptor();
ItemPositionDescriptor.prototype.constructor=ItemPositionDescriptor;
function LS_Nem()
{
return this.LS_slx;
}
function FieldDescriptor()
{
}
function FieldNameDescriptor(LS_MtO)
{
this.LS_MtO=String(LS_MtO);
this.LS_FoS=LS_UAn;
this.toString=function()
{
return this.LS_MtO;
}
;
}
FieldNameDescriptor.prototype=new FieldDescriptor();
FieldNameDescriptor.prototype.constructor=FieldNameDescriptor;
function LS_UAn()
{
return this.LS_MtO;
}
function FieldPositionDescriptor(LS_Geg)
{
this.LS_Geg=Number(LS_Geg);
this.LS_rWs=LS_fbC;
this.toString=function()
{
return String(this.LS_Geg);
}
;
}
FieldPositionDescriptor.prototype=new FieldDescriptor();
FieldPositionDescriptor.prototype.constructor=FieldPositionDescriptor;
function LS_fbC()
{
return this.LS_Geg;
}
function LS_LZI(LS_oXe,item,field,LS_KZR,LS_SUj,LS_nnJ,LS_mCR)
{
LS_tJd.log("PC",'LS_LZI',arguments);
var LS_nJM=item.toString();
var LS_uSp=field.toString();
if (!LS_xcu.LS_DoT[LS_oXe])
{
LS_xcu.LS_DoT[LS_oXe]=new LS_iAx(LS_JPJ,LS_nnJ);
}
var LS_qWi=LS_xcu.LS_jlN(LS_oXe);
LS_qWi.LS_RRX.LS_HwI(LS_SUj,LS_nJM,LS_uSp);
LS_qWi.LS_CPr.LS_HwI(LS_KZR,LS_nJM,LS_uSp);
LS_mCR=LS_xAY(LS_mCR);
LS_xcu.LS_wbb(LS_oXe,LS_nJM,LS_uSp,LS_KZR,LS_SUj,false,"",LS_mCR);
LS_xcu.LS_Jec[LS_oXe]=true;
}
self.LS_cell=self.LS_LZI;
function LS_Udf(LS_oXe,row,field,LS_KZR,LS_SUj,LS_nnJ,LS_mCR)
{
LS_tJd.log("PC",'LS_Udf',arguments);
var LS_uSp=field.toString();
if (!LS_xcu.LS_DoT[LS_oXe])
{
LS_xcu.LS_DoT[LS_oXe]=new LS_iAx(LS_YYk,LS_nnJ);
}
var LS_qWi=LS_xcu.LS_jlN(LS_oXe);
LS_qWi.LS_RRX.LS_HwI(LS_SUj,row,LS_uSp);
LS_qWi.LS_CPr.LS_HwI(LS_KZR,row,LS_uSp);
LS_mCR=LS_xAY(LS_mCR);
LS_xcu.LS_wbb(LS_oXe,row,LS_uSp,LS_KZR,LS_SUj,false,"",LS_mCR);
LS_xcu.LS_Jec[LS_oXe]=true;
}
self.LS_cs=self.LS_Udf;
function LS_qst(LS_oXe,row,field,LS_KZR,LS_SUj,LS_nnJ,LS_mCR)
{
LS_tJd.log("PC",'LS_qst',arguments);
var LS_uSp=field.toString();
if (!LS_xcu.LS_DoT[LS_oXe])
{
LS_xcu.LS_DoT[LS_oXe]=new LS_iAx(LS_hmG,LS_nnJ);
}
var LS_qWi=LS_xcu.LS_jlN(LS_oXe);
LS_qWi.LS_RRX.LS_HwI(LS_SUj,row,LS_uSp);
LS_qWi.LS_CPr.LS_HwI(LS_KZR,row,LS_uSp);
LS_mCR=LS_xAY(LS_mCR);
LS_xcu.LS_wbb(LS_oXe,row,LS_uSp,LS_KZR,LS_SUj,false,"",LS_mCR);
LS_xcu.LS_Jec[LS_oXe]=true;
}
self.LS_cM=self.LS_qst;
function LS_xAY(LS_mCR)
{
if (!LS_mCR)
{
return "div";
}
else
{
for (var LS_GlS=0;LS_GlS<LS_GGR.length;LS_GlS++)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -