IE with JS
-
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.)
-
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.)
-
too close to W3c?
Brad Australian "Keyboard? Ha! I throw magnets over the RAM chips!" - peterchen
what you mean too close Faris Madi Nothing Comes Easy (N.C.E.)
-
what you mean too close Faris Madi Nothing Comes Easy (N.C.E.)
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
-
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.)
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.
-
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.
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.)
-
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.)
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.)
-
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.)
-
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
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