Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Mozila Not woking DEL key

Not answered Mozila Not woking DEL key

Feed from this thread
  • Rathan avatar

    Posted on Feb 3, 2012 (permalink)

    function BName(e,Obj,mLength) {
      
            //Rathan
            var keynum
            var keychar
            var numcheck
      
            if (window.event) // IE
            {
                keynum = e.keyCode;
      
            }
            else if (e.which) // Netscape/Firefox/Opera
            {
                keynum = e.which;
      
            }
      
            keychar = String.fromCharCode(keynum)
            // numcheck = /\d/
      
            numcheck = "";
            //return !numcheck.test(keychar)
            //Rathan
      
            if ((keynum >= 65 && keynum <= 90) || (keynum >= 97 && keynum <= 122) || (keynum >= 48 && keynum <= 57) || (keynum == 32) || (keynum == 36) || (keynum == 38) || (keynum == 43) || (keynum == 64 || keynum == 8))
             {
              var tVal;
              var keycharacter=0;
              tVal = document.getElementById(keychar).value;
              keycharacter = String.fromCharCode(keynum);   
              tVal=tVal + keycharacter;     
              if (parseInt(tVal.length) > mLength)
              
                return false; 
              }
              }else{return false;}
        }
    hi sir,
    this javascript funcation working ie8,GoogleChrome and Mozila fine but Mozila not working DEL key Plz help me any onther choice

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Mozila Not woking DEL key