如何用Javascript控制textbox的輸入法﹖(在線等待......)
例如﹕在用拼音輸入法時﹐所輸入的結果都是英文字母而不是漢字
我知道在VB.NET可以用textbox.style("ime-Mode")="disabled"
不知道用Javascript怎么控制﹐請各位大俠指教!!!!!!!!!
例如﹕在用拼音輸入法時﹐所輸入的結果都是英文字母而不是漢字
我知道在VB.NET可以用textbox.style("ime-Mode")="disabled"
不知道用Javascript怎么控制﹐請各位大俠指教!!!!!!!!!
解决方案 »
- html中怎么调用javascript函数?
- 服务器装了.netframework3.5后打不开aspx页面了
- 每个页面中判断cookie是否为空,如果为空,则弹出提示框,为什么不行?急求。
- 如何给有链接的TreeView节点 选择时字体为红色呀?
- 数据挷定问题
- 有研究过aspnetforum的朋友请进来
- 请问:托管应用程序和非托管应用程序这个概念如何理解,谢谢解答!
- (ASP.NET,C#)WEB页面间控件的继承和整个页面的继承,请问怎么实现?
- 怎么才能实现datagrid中的隐藏列
- 简单问题
- .Net里怎么得到存储过程的反回值????
- 两个问题:一、给注册用户加一个收藏信息的功能,二、让注册用户互相传纸条
function IME_Mode()
{
document.all["txt_test"].style.cssText="ime-mode:disabled;";
}
</script>
<body onload="IME_Mode();"><input id="txt_test"></body>
elementID.style.imeMode = "value"
document.all.elementID.style.imeMode = "value"
Values: auto, active, inactive, and disabled. Example: <input id="myInput" type="text" size=60 value='This input control has ime-mode
property set to "inactive"'>
<button onclick="myInput.style.imeMode='active'">Set imeMode property to active</
button>
<button onclick="myInput.style.imeMode='inactive'">Set imeMode property to
inactive</button>
.disabled{ ime-mode:disabled; }<input id="myInput" type="text" size=60 class=disabled>
T1.disabled = true;
</script>
[a-zA-Z0-9]{100}
<!--
function textCounter(field, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
}
//-->
</SCRIPT>
<textarea name=words cols=73 rows=5 class="" onPropertyChange="textCounter(words,10)"></textarea>
后端﹕textbox.attributes.add("onkeydown","javascript:Control(this.form." & textbox.clientID & ",100);")
客戶端﹕
function Control(field,count)
{
if (field.value.length=100){
field.style.imeMode="disabled";
}
}
可是這樣用不行﹐為什么﹖我是這樣用的
后端﹕textbox.attributes.add("onkeydown","javascript:Control(this.form." & textbox.clientID & ",100);")
客戶端﹕
function Control(field,count)
{
if (field.value.length=100){
field.style.imeMode="disabled";
}
}
可是這樣用不行﹐為什么﹖