input upperCase
Guys,
I need to set the ControlText from a Input Control to UpperCase (basically, everything that the user types must be set to a upper case....).
Ideas anyone?
zeh florianopolis-sc/brazil -:)
October 30,
You can change the text on the fly using onControlTextChanged event, just be careful not to go into endless recursion.
<style>
.aw-gecko .aw-edit-control .aw-item-box {
overflow: hidden;
}
</style>
<script>
var obj = new AW.UI.Input;
obj.onControlTextChanged = function(text){
var upper = text.toUpperCase();
if (text != upper){
this.setControlText(upper);
}
}
document.write(obj);
</script>
There is an AW 2.0.1 bug in FF 1.5+ where onControlTextChanging(ed) event does not fire sometimes. This can be fixed with the following CSS -
.aw-gecko .aw-edit-control .aw-item-box {
overflow: hidden;
}
Alex (ActiveWidgets)
October 31,
Can this application possible to implement in verion1
May 7,