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. IE with JS

IE with JS

Scheduled Pinned Locked Moved Web Development
javascriptquestion
9 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.
  • M Offline
    M Offline
    militiaware
    wrote on last edited by
    #1

    i found something strange in the IE with the javascript and here is the case: open this code with firefox and you shall see this character: (<) and then try it on IE and you will see nothing. the ie (i think) doesn't know this hexa, if you change it to other like 0x003A ,B or D...it will work fine...but not C --------------------------------------------------------------------------------------

    123

    document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ---------------------------------------------------------------- why? and what is the solution? Faris Madi Nothing Comes Easy (N.C.E.)

    B G M 3 Replies Last reply
    0
    • M militiaware

      i found something strange in the IE with the javascript and here is the case: open this code with firefox and you shall see this character: (<) and then try it on IE and you will see nothing. the ie (i think) doesn't know this hexa, if you change it to other like 0x003A ,B or D...it will work fine...but not C --------------------------------------------------------------------------------------

      123

      document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ---------------------------------------------------------------- why? and what is the solution? Faris Madi Nothing Comes Easy (N.C.E.)

      B Offline
      B Offline
      Bradml
      wrote on last edited by
      #2

      too close to W3c?


      Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen

      M 1 Reply Last reply
      0
      • B Bradml

        too close to W3c?


        Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen

        M Offline
        M Offline
        militiaware
        wrote on last edited by
        #3

        what you mean too close Faris Madi Nothing Comes Easy (N.C.E.)

        B 1 Reply Last reply
        0
        • M militiaware

          what you mean too close Faris Madi Nothing Comes Easy (N.C.E.)

          B Offline
          B Offline
          Bradml
          wrote on last edited by
          #4

          That was a joke, the W3c (World Wide Web Consortium) are the people who set the standards for many web protocols (such as html etc.). As you may have noticed, IE seems to have a thing for not doing what they say.


          Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen

          J 1 Reply Last reply
          0
          • M militiaware

            i found something strange in the IE with the javascript and here is the case: open this code with firefox and you shall see this character: (<) and then try it on IE and you will see nothing. the ie (i think) doesn't know this hexa, if you change it to other like 0x003A ,B or D...it will work fine...but not C --------------------------------------------------------------------------------------

            123

            document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ---------------------------------------------------------------- why? and what is the solution? Faris Madi Nothing Comes Easy (N.C.E.)

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            You are putting illegal html code in the innerHTML property. The browser may choose to handle this error any way that it likes. IE chooses to ignore the broken code, while Firefox chooses to convert it to plain text.

            --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

            M 1 Reply Last reply
            0
            • G Guffa

              You are putting illegal html code in the innerHTML property. The browser may choose to handle this error any way that it likes. IE chooses to ignore the broken code, while Firefox chooses to convert it to plain text.

              --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

              M Offline
              M Offline
              militiaware
              wrote on last edited by
              #6

              if this is an illegal code... so how can be this code run on IE: document.getElementById("test").innerHTML = String.fromCharCode("0x003D"); and this is not: document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ???? Faris Madi Nothing Comes Easy (N.C.E.)

              G 1 Reply Last reply
              0
              • M militiaware

                i found something strange in the IE with the javascript and here is the case: open this code with firefox and you shall see this character: (<) and then try it on IE and you will see nothing. the ie (i think) doesn't know this hexa, if you change it to other like 0x003A ,B or D...it will work fine...but not C --------------------------------------------------------------------------------------

                123

                document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ---------------------------------------------------------------- why? and what is the solution? Faris Madi Nothing Comes Easy (N.C.E.)

                M Offline
                M Offline
                militiaware
                wrote on last edited by
                #7

                I get it. i made and escape function that comverts the illegal characters to other format like & to & ..etc

                Faris Madi Nothing Comes Easy (N.C.E.)

                1 Reply Last reply
                0
                • M militiaware

                  if this is an illegal code... so how can be this code run on IE: document.getElementById("test").innerHTML = String.fromCharCode("0x003D"); and this is not: document.getElementById("test").innerHTML = String.fromCharCode("0x003C"); ???? Faris Madi Nothing Comes Easy (N.C.E.)

                  G Offline
                  G Offline
                  Guffa
                  wrote on last edited by
                  #8

                  Because "=" is valid html, and "<" is not.

                  --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

                  1 Reply Last reply
                  0
                  • B Bradml

                    That was a joke, the W3c (World Wide Web Consortium) are the people who set the standards for many web protocols (such as html etc.). As you may have noticed, IE seems to have a thing for not doing what they say.


                    Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen

                    J Offline
                    J Offline
                    JimmyRopes
                    wrote on last edited by
                    #9

                    Bradml wrote:

                    As you may have noticed, IE seems to have a thing for not doing what they say.

                    Cross browser compatability is like trying to heard cats! They all have a different agenda.

                    I'm on-line therefore I am. JimmyRopes

                    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