Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. java script is not working for internet explorer 8

java script is not working for internet explorer 8

Scheduled Pinned Locked Moved ASP.NET
toolsjavahelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vikas shukla
    wrote on last edited by
    #1

    hi sir, please help me sir.i want to block integer for textbox1 and character for textbox2.actually what java script i am using works fine for explorer 6,7 and mozilla but not in ie8.and i have enable all the script from tools-internet option-custom.but nothing works.please support. thanks

    A 1 Reply Last reply
    0
    • V vikas shukla

      hi sir, please help me sir.i want to block integer for textbox1 and character for textbox2.actually what java script i am using works fine for explorer 6,7 and mozilla but not in ie8.and i have enable all the script from tools-internet option-custom.but nothing works.please support. thanks

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Is it possible to show what code you placed for Integer checking? I think you might put a debugger in your code and inspect what the object has when you keypress. Check if event.keyCode is giving proper value or not. :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->****
      InfoBox Visual Studio 2010 Extension
      Windows7 API Code Pack
      Simplify Code Using NDepend**

      V 1 Reply Last reply
      0
      • A Abhishek Sur

        Is it possible to show what code you placed for Integer checking? I think you might put a debugger in your code and inspect what the object has when you keypress. Check if event.keyCode is giving proper value or not. :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->****
        InfoBox Visual Studio 2010 Extension
        Windows7 API Code Pack
        Simplify Code Using NDepend**

        V Offline
        V Offline
        vikas shukla
        wrote on last edited by
        #3

        hi sir, yes why not i can see you my java script.it is below.and i am using this on input textbox keypress event.but one more issue is that it's working fine if i am use it in mozilla or ie 6,7 but not in ie8 only. function number(e) { var key; var keychar; if (window.event){ key = window.event.keyCode; }else if (e){ key = e.which; } else return true; if((key == 8) || (key == 0)) return true; keychar = String.fromCharCode(key); keychar = keychar.toLowerCase(); if((key > 47) && (key < 58)){ return true; }else return false; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups