javascript - Implementing twitter posts synchronously -
hi using code here embed twitter posts in website. works fine on pages code used (in forums, example), however, when browsing through user profiles page, post history of each user generated using ajax because there other sections user activities on website , problems start here. in console following error message:
failed execute 'write' on 'document': isn't possible write document asynchronously-loaded external script unless explicitly opened.
this causing twitter posts not displayed.
any ideas how embed twitter posts synchronously? looked through twitter documentation, couldn't find solution.
youve found wrong solution. never ever stuff synchronously. , never ever use document.write. can append bodys inner content (even after page loaded , twitter request finished):
document.body.innerhtml += "some twitter stuff";
Comments
Post a Comment