tmort / Socialite

Other
1.68k stars 163 forks source link

Pinterest not loading properly #45

Open w3nisar opened 11 years ago

w3nisar commented 11 years ago

Hi, I am facing problem with pinterest button on my website,I can load only one pinterest button on my page with socialite.js,There are multiple pinterest buttons on my page. Also my site is not working properly as I am getting this error in IE 9 'Unable to get value of the property 'removeChild': object is null or undefined'. When checked this function (removeNetwork) is related to the pinterest extension. also in IE 8 a different error is shown on same line "el.parentNode" is null or not an object.

Can you please help me how can load multiple pinterest buttons on my site

Thanks

dbushell commented 11 years ago

Thanks for the report. Had a quick look and it appears that Pinterest is automatically removing their script once it has ran. Not sure why! Anyway, this breaks Socialite wich is trying to remove and reappend the script. Should be fixable, I'll try and get it done soon.

w3nisar commented 11 years ago

Thanks again Dave!!

FellowshipAgency commented 11 years ago

Is there any progress on a fix for this? Thanks.

w3nisar commented 11 years ago

@Rubious Not yet

dbushell commented 11 years ago

I've fixed the error.

However when loading a second Pinterest button their script seems to destroy existing buttons. This will need further research, it may not be possible anymore.

FellowshipAgency commented 11 years ago

So it's not possible to add and remove buttons on the same page with javscript? I have a page where you can choose the colour of a product and the Pinterest button updates so if they click it the correct image is pinned. It broke with their update to the buttons. Is this no longer possible?