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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. JavaScript
  4. Problem with IE 9

Problem with IE 9

Scheduled Pinned Locked Moved JavaScript
javajavascripttoolshelptutorial
4 Posts 4 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.
  • G Offline
    G Offline
    giocot
    wrote on last edited by
    #1

    Hi all i have this java script that with Firefox works fine but with IE9 don't work; any idea how to solve the problem ? Thanks in advance. here the javascript var element = e.srcElement || e.target; if(element != null){ if(element.tagName == "INPUT") { //alert("Before: " + element.getAttribute("type")); element.setAttribute("type", "password"); //alert("After: " + element.getAttribute("type")); } }

    U J T 3 Replies Last reply
    0
    • G giocot

      Hi all i have this java script that with Firefox works fine but with IE9 don't work; any idea how to solve the problem ? Thanks in advance. here the javascript var element = e.srcElement || e.target; if(element != null){ if(element.tagName == "INPUT") { //alert("Before: " + element.getAttribute("type")); element.setAttribute("type", "password"); //alert("After: " + element.getAttribute("type")); } }

      U Offline
      U Offline
      User 9460647
      wrote on last edited by
      #2

      hi, I have reviewed yr code , can u check method compatibility with i9. may be some problem in this code ..."var element = e.srcElement || e.target;"

      1 Reply Last reply
      0
      • G giocot

        Hi all i have this java script that with Firefox works fine but with IE9 don't work; any idea how to solve the problem ? Thanks in advance. here the javascript var element = e.srcElement || e.target; if(element != null){ if(element.tagName == "INPUT") { //alert("Before: " + element.getAttribute("type")); element.setAttribute("type", "password"); //alert("After: " + element.getAttribute("type")); } }

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        you press F12 in IE9, or go to tools I think, and select developer for F12, and you can run it again, and it will flag the error for you. What is e?, I don't see a reference to that object.

        1 Reply Last reply
        0
        • G giocot

          Hi all i have this java script that with Firefox works fine but with IE9 don't work; any idea how to solve the problem ? Thanks in advance. here the javascript var element = e.srcElement || e.target; if(element != null){ if(element.tagName == "INPUT") { //alert("Before: " + element.getAttribute("type")); element.setAttribute("type", "password"); //alert("After: " + element.getAttribute("type")); } }

          T Offline
          T Offline
          twseitex
          wrote on last edited by
          #4

          create an INPUT IE 8 createElement('') // don't forget < and > Opera, Mozilla .... createElement('INPUT') ... pointerOfInput.type=.... example onkey handler function som(e) // e placeholder for event { var KeyCodeValue; if( (e==null) || (e==undefined)){e=window.event;} if('which' in e){KeyCodeValue=e.which;} else{KeyCodeValue=e.keyCode;} .... } example mouseevent handler function som(e) // e placeholder for event { if( (e==null) || (e==undefined)){e=window.event;} var LeftPos=e.clientX; var TopPos=e.clientY; ... }

          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