1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 <2008> 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 <2008> 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Question about WebCA |
From: | Tom Pelaia <[email protected]> |
To: | Bao Chunlei <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Fri, 12 Dec 2008 08:33:29 -0500 |
To test for an array, check whether values.length is defined. To get the type, use the "typeof" method as in "typeof(values)".
best regards, tom
Hello all,
I just use WebCA to read pv value.But when I do some change to the value,I get nothing.If anyone has the answer,please tell me.
the code:
function handleMonitor( userInfo, pvName, values, status, severity, timestamp ) {
userInfo.innerHTML = values;
}
only this,is run correct.
but
function handleMonitor( userInfo, pvName, values, status, severity, timestamp ) {
temp=values;
index=0;
index=temp.indexOf(".");
userInfo.innerHTML = temp.substr(0,index+4);
}
I get nothing value。
Thanks all
Baochunlei Control Group,IHEP