Reputation: 9184
I have such page
http://автопортал-юга.рф/organizations/all_organizations/1
and in all browser's all is ok, when i click on link "подробнее" - i see ajax data appended to page view... But why IE (in my case 10,11,12) - didn't do anything?
main thing - no error log's or warnings, and i'm confused ( what i do wrong?
ie debugger throw on this js part:
return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
undefined;
also i use rails 4 and it's turbolinks.
How to solve this issue?
or just how to catch what is bad?
html part:
<a href="/organizations/9" data-remote="true">подробнее...</a>
everybody who minus - first explain why! There is reall issue!
Upvotes: 6
Views: 526
Reputation: 1503
I'm assuming the data you're returning is JSON.
Is it possible you already tested this with empty data the first time?
IE caches the request unless you specifically set headers on the servers not to cache it. In fact, if you're using CORS, IE will cache the preflight request's response too - meaning it won't even attempt to make a request to the server, and will just return a 304.
Open an http-analyzer such as fiddler or charles, and check what happens with the request. Is it sent? What's the response code (200 / 304)? Does it contain the data you expect in the response, or some older data? You should also be able to see this in the IE network tab as well.
Upvotes: 1
Reputation: 3935
Are you sure your error isn't coming from a development gem's incompatibility with IE?
Recently I was getting JS errors from various plugins and extra functionality, e.g. miniprofiler/jquery incompatibility in Chrome. IIRC the error was similar to the one you describe.
Also FWIW to help with IE specific incompatibilities perhaps Modernizr will help
https://github.com/russfrisch/modernizr-rails
Upvotes: 1