Using Jquery to load Facebook fb:profile-pic - not working in IE
Posted
by Gublooo
on Stack Overflow
See other posts from Stack Overflow
or by Gublooo
Published on 2010-05-10T06:13:03Z
Indexed on
2010/05/10
6:44 UTC
Read the original article
Hit count: 389
Hey.... I followed the tips given on
Loading Facebook fb:profile via ajax
In my app, I am basically loading more comments posted by the user via Jquery and along with each comment showing the user's picture using the fb:profile-pic tag
This is a sample of how I'm building the string via Jquery
newcomment += "<fb:profile-pic uid='"+data.fb_userid+"' height='50' width='50' />"; newcomment += ""+data.user_name+": "; newcomment += ""+data.user_comment+": "; $("#morecomments").append(newcomment);
So the profile-pic was not being displayed - After reading the above link, I added
if ( FB.XFBML.Host.parseDomTree ) setTimeout( FB.XFBML.Host.parseDomTree, 0 );
The weird thing now is - its working in Chrome and Firefox but not in IE Cant figure out why. Any help will be appreciated. Thanks
© Stack Overflow or respective owner