tabalinas / jssocials

Social Network Sharing jQuery Plugin
http://js-socials.com
MIT License
464 stars 104 forks source link

Facebook and Google Plus on IE9 #18

Open MarcelVe opened 9 years ago

MarcelVe commented 9 years ago

Hi, the counter for facebook and google plus not working in IE9, sorry but I need this. Can you help me. Thank you.

tabalinas commented 9 years ago

To fix Facebook issue try to add the following code before jsSocials initialization

jQuery.support.cors = true;

For google plus issue more investigation is needed. If you know the solution, feel free to share it, and of course PR is welcome.

MarcelVe commented 9 years ago

Not working yet. Google plus too. I don't know what's wrong.

tabalinas commented 9 years ago

I've tested it in emulation mode of IE9 in IE11, and it works fine for the facebook. How do you test it in IE9? Are you sure it works in other browsers?

For google plus issue is not clear yet. Possible reason: http://stackoverflow.com/questions/10232017/ie9-jquery-ajax-with-cors-returns-access-is-denied

MarcelVe commented 9 years ago

It works in other browsers. In Windows 8, IE11 emulation to IE9, for me not works. I will try to figure out what's wrong. If you find a solution, let you know. Thank you.

tabalinas commented 9 years ago

I'm almost 100% sure that it's due to the IE9 weird XDomainRequest described here http://stackoverflow.com/questions/10232017/ie9-jquery-ajax-with-cors-returns-access-is-denied

Tried to fix it in the fiddle http://jsfiddle.net/tabalinas/0058pL1d/ Played with ajax requests params. But still no success for IE9. Interesting to check it in real IE9 (maybe emulation is not fair enough).

saiballo commented 8 years ago

not working for me too (IE 9)

saiballo commented 8 years ago

to resolve add

dataType: "jsonp"

to your ajax call on jsfiddle