CISCO\H3C\HUAWEI等新旧网络产品回收

回收热线\微信号:13316580697
回收QQ:2604854556

产品分类

联系我们

深圳市绿思科技有限公司

地址:深圳市龙岗区龙岗天安数码城4栋A座609

联系人:罗先生   QQ:2604854556
电话/微信号:13316580697

传真:0755 22141929

http://www.2ciscow.com

腾  讯


新  浪

回收思科CISCO IP电话

首页  »  产品展示  »  回收CISCO网关及其它  »  回收思科CISCO IP电话

7970cisco IP 电话
发布时间:2012/2/28 15:45:27 点击量:
7970cisco IP 电话产品简介

This piece of code below is from Cisco IP phone. I want to modify it by create another button that can clear the content of the text that I type in.

Clear  7970cisco IP 电话
<%=thisPage%>?value=!
2
7970cisco IP 电话
when 'Clear' key was pressed, value=!. Then I will check if (value == "!") then Session.Abandon to clear everything. I work but not when the first time I press the Clear button. The first time I click the clear button nothing happen, the content of the text is still there. Then I press it again then the text got clear. I dont know why it behave like this. Please anyone, any suggestion??? Thank you so much

Code: 7970cisco IP 电话
Response.ContentType = "text/xml";

//  Expires = -1 will expire the page immediately.
//  This tells the IP phone browser to NOT stack this page on the browser history.
//  So when the user selects the Exit softkey, we go back to the menu instead of the previous JPEG

Response.Expires = -1;
7970cisco IP 电话
var text = Session("text");
if (!Session("text")) {
   text = "";
}
7970cisco IP 电话
var value = String(Request.QueryString("value").Item);
var thisPage = "http://" + Request.ServerVariables("SERVER_NAME") + Request.ServerVariables("PATH_INFO");
var thisWebDir = thisPage.substr(0, thisPage.lastIndexOf("/")+1);
var keyboardImage = thisWebDir + "keyboard.png";

7970cisco IP 电话
if (value != "undefined") {
  if (value == "!") {
     Session("text") = "";
  }else {
    text = text + value;
    Session("text") = text;
  }
}

%>


7970cisco IP 电话
Current Value:<%=text%>
-1-1
<%=keyboardImage%>


   Q
   <%=thisPage%>?value=Q
   
7970cisco IP 电话


   W
   <%=thisPage%>?value=W
   

7970cisco IP 电话

   E
   <%=thisPage%>?value=E
   



   R
   <%=thisPage%>?value=R
   



   T
   <%=thisPage%>?value=T
   



   Y
   <%=thisPage%>?value=Y
   



   U
   <%=thisPage%>?value=U
   



   I
   <%=thisPage%>?value=I
   



   O
   <%=thisPage%>?value=O
   



   P
   <%=thisPage%>?value=P
   



   A
   <%=thisPage%>?value=A
   



   S
   <%=thisPage%>?value=S
   



   D
   <%=thisPage%>?value=D
   



   F
   <%=thisPage%>?value=F
   



   G
   <%=thisPage%>?value=G
   



   H
   <%=thisPage%>?value=H
   



   J
   <%=thisPage%>?value=J
   



   K
   <%=thisPage%>?value=K
   



   L
   <%=thisPage%>?value=L
   



   Z
   <%=thisPage%>?value=Z
   



   X
   <%=thisPage%>?value=X
   



   C
   <%=thisPage%>?value=C
   



   V
   <%=thisPage%>?value=V
   



   B
   <%=thisPage%>?value=B
   



   N
   <%=thisPage%>?value=N
   



   M
   <%=thisPage%>?value=M
   




   Clear
   <%=thisPage%>?value=!
   2



   Exit
   SoftKey:Exit
   3






 

上一条:7911ciscoIP电话 | 下一条:7961 ciscoIP 电话

版权所有 Copyright © 2009-2011 All rights reserved. CISCO\H3C\HUAWEI等新旧网络产品回收
地址:深圳市龙岗区龙岗天安数码城4栋A座609 http://www.2ciscow.com 咨询热线:13316580697 联系人:罗先生 企业邮箱:cisco@2ciscow.com
粤ICP备11090912号-1

在线客服
  • 采购部

    采购经理

    点击这里给我发消息
  • 销售部

    销售经理

    点击这里给我发消息

    销售经理

    点击这里给我发消息
  • 技术部

    技术经理

    点击这里给我发消息

绿思科技微信公众号

网络设备回收