what is this attachevent error ie9, ie10??? html5 jQuery … how solved,…?
You should be using addEventListener instead.
IMHO better to switch your code rather than spend any time trying to debug attachEvent
Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
attachEvent was a jScript command equivalent to addEventListener in JavaScript.
The only browsers to fully support JScript were IE3 through IE8.
IE9 had some partial support for jScript but also supported JavaScript.
IE10 and IE11 only support JavaScript and no jScript at all.
you mean this code: // that attach events??? Is any jQuery fix?
$(".fwdButton").on("click", function () {
clickFwdImage(currentImg(totalImgs), totalImgs);
});
$(".bkwdButton").on("click", function () {
clickBkwdImage(currentImg(totalImgs), totalImgs);
});
});
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src=https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js></script>
</head> <body>
<button class=fwdButton>fwdButton</button>
<button class=bkwdButton>bkwdButton</button>
<script>
$(".fwdButton").on("click", function () {
//clickFwdImage(currentImg(totalImgs), totalImgs);
alert('fwdButton')
});
$(".bkwdButton").on("click", function () {
//clickBkwdImage(currentImg(totalImgs), totalImgs);
alert('bkwdButton')
});
</script>
</body>
</html>
I mean these are the events give the bug attachevent?
You have any idea
where add the addEventListener ???
also this supported by non-IE9(+) Browsers like chrome…? Or must be **if **browser support it feature implement…?
since I use jQuery event binders - why I have this problem attachEvent… jQuery isn’t support IE9…?
It is confusing trying to work out what you are saying. Just exactly what commands are you using for the events?
addEventListener - not IE8 or earlier
attachEvent - only IE9 and earlier
jQuery 1.11 on - should work for all browsers
jquery 2.0 on - not IE8 and earlier
If that is the actual error message, the only thing possible that I can think of is if IE9 is in quirks mode
In Windows Internet Explorer 9 and earlier versions, quirks mode restricted the webpage to the features supported by Microsoft Internet Explorer 5.5
I wouldn’t think jQuery / addEventListener would be a “feature”, but maybe?
Actually I DO NOT RUN in ie9 or ie10 BUT
USED IE11
DEVELOPER MODE
9 + IE9
10 + IE10
I HAVE NO IE9… Well in actual ie9 or ie10 should Not get this???
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.