jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.13k stars 269 forks source link

TypeError: Object expected with angular and IE8 #61

Closed srijken closed 10 years ago

srijken commented 10 years ago

To repro this problem: visit the example page http://jpillora.com/xdomain/example/angular/ with IE8. It won't load the data, and show "TypeError: Object expected" in the javascript console

jpillora commented 10 years ago

I'm using newest angular in that example, which I think drops support for IE8, can you see which line?

On Wednesday, April 2, 2014, srijken notifications@github.com wrote:

To repro this problem: visit the example page http://jpillora.com/xdomain/example/angular/ with IE8. It won't load the data, and show "TypeError: Object expected" in the javascript console

Reply to this email directly or view it on GitHubhttps://github.com/jpillora/xdomain/issues/61 .

srijken commented 10 years ago

It's almost impossible to see where it fails, because of the limited debugging in IE8.

I'm using angular 1.2.10, the example uses 1.2.14

I'm still looking, will post here when I find solutions

jtmkrueger commented 10 years ago

This might be related to xdomain.js not being loaded before you reference xdomain. I had the same problem, and found inlining the entire xdomain script ( :-1: ) got me past this in ie8.

jtmkrueger commented 10 years ago

@srijken I'm not able to see this with @jpillora 's example in ie8

jpillora commented 10 years ago

Will close this until we know more. Others investigating their own issues, give this example a try http://jpillora.com/xdomain/example/angular and compare it to what you're doing and report findings here :) Reopen if needed