question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Form demo on IE9 throws error "AJAX Error 0:.."

See original GitHub issue

When I access form at http://w2ui.com/web/demo/form with IE9 and hit save I get error:

AJAX Error 0: TypeError: Unable to get property 'addEventListener' of undefined or null reference

I have tried with IE9, IE11 with document mode IE9 - gives error. With IE10+ the form works fine.

I have tried with jQuery 1.11 and jQuery 2.0.3.

The documentation requirements shows IE9+, where lies the problem?

Thanks.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spizzi77commented, Jun 29, 2016

Hi, unfortunately i also must use IE9 in some projects, for company directive 😃 btw yes w2ui support IE9 with no problem, in this case IE9 doesn’t recognize the addEventListener of the progress % state in Ajax call, this happen often with IE9, all days i’m fighting with differents problems of compatibility of IE9, because it doesn’t recognize some portion of code if it’s written in a modern way 😃 Like as for example some global declaration of variables.In this case, i just notified today that the problem is at line 13170 untill 13175 just the progress event, there are two solutions.Rewrite that portion of addEventListener in a way that IE9 likes or i think you can also comment that portion of code from 13170 at 13175 but DON’T COMMENT RETURN XHR 😃, Commenting that portion doesn’t affect the right parse of the code just will not display the % state of the ajax call in save but it isn’t a problem.You can use a ajax block ui and unblock ui for the wait.I commented that portion and it work perfectly also in IE9, i notified this problem only with the save of the form object.Hope this help.Bye

0reactions
mpf82commented, Sep 17, 2021

Closing this issue, as there are no plans to support IE anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE9 jQuery AJAX with CORS returns "Access is denied"
I was testing a CORS web service on my dev machine and was getting the "Access is denied" error message in only IE....
Read more >
jalkoby/phoenix_ujs: Unobtrusive vanilla js toolset to ... - GitHub
AJAX request can be canceled if handler will return `false` ajax:success - a success response (2xx status code) ajax:error - an error response...
Read more >
Ajax Requests - You Don't Need jQuery!
Invoke an alert with the user's name, or an error if the request fails. jQuery. There are a couple ways to initiate a...
Read more >
Web Browser Control & Specifying the IE Version - Rick Strahl
I am receiving javascript errors and display issues when the page is opened in the application , but not when I open the...
Read more >
IE9 doesn't allow submitting a HTML form programmatically if the ...
Instead the browser will throw the following error in the developer console, indicating the line containing form.submit() or button.click():.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found