产品分类
联系我们
回收思科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
// 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 电话