
04/12/2006, 06:34
|
 | | | Fecha de Ingreso: agosto-2004
Mensajes: 509
Antigüedad: 20 años, 6 meses Puntos: 2 | |
Has visto en depuración que contiene Ctl? Esto no te da problema Ctl.value.length?
Otra opcion sería:
var txtId=<%=textbox.ClientId %>;
function WriteKey (keyCode, Min, Max, SM, SD, Dec, FixDec)
{
var Ctl=document.getElementById(txtId);
if (document.selection.type != 'None')
if (document.selection.createRange().text.length < Ctl.value.length)
{
inicio=Ctl.selectionStart;
fin=Ctl.selectionEnd;
}
}
Con esto no tendrías problemas. Pero de todos modos, mirate en depuración que contiene Ctl. Saludos |