Twitter and Facebook buttons in IE8 problem.
Last Post 01/10/2013 10:39 AM by Bob Worley. 2 Replies.
Author Messages Not Resolved
Bob Worley
Posts:10


--
01/09/2013 9:44 AM
    I'm hoping someone can give me some direction on what else to look at for this problem. I've added a Twitter Follow button and a Facebook button on my DNN (3.2.2) website. I generated the code from the Twitter and Facebook developer websites. When I view the website in IE9, everything looks and works fine. When the website is viewed using IE8, the buttons will not display. I tried comparing security settings between the IE8 and IE9 and most settings matched (there are additional settings in IE9 but these were set to enabled).
    For the Twitter Follow button, I added a text/HTML module onto my webpage. Added this code into the Text area (Basic Text Box - HTML):


    Then, this script into the header of the module:
    <script> <br /> !function(d,s,id){ <br /> var js,fjs=d.getElementsByTagName(s)[0]; <br /> if(!d.getElementById(id)){ <br /> js=d.createElement(s); <br /> js.id=id; <br /> js.src="//platform.twitter.com/widgets.js"; <br /> fjs.parentNode.insertBefore(js,fjs); <br /> } <br /> }(document,"script","twitter-wjs");</script> <br /> <br /> I realize this is primarily DNN questions/issues, and this seems to be more an issue with IE, but I was hoping maybe somebody has run across something like this before trying to implement these buttons into DNN. By the way, when viewing the website thru Firefox, the machine running IE9 still viewed fine, but the machine with IE8, did not. <br /> <br /> Thanks, <br /> Bob
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    01/09/2013 6:28 PM
    You will note that there are some
    tags INSIDE of the script. These are HTML tags they will break the code. I'm surprised that the other browsers didn't break.

    (No comment about the DNN 3.2.2 site ... but you really should do something about that. )



    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Bob Worley
    Posts:10


    --
    01/10/2013 10:39 AM
    Joe,
    Thanks for the reply. I believe the
    tags came as a result of me testing the script inside the text, and then copying it back out, again.

    Also, I finally figured out what else was happening...turns out the machines which were not displaying the buttons had ESET antivirus installed which was configured to block *twitter.com and *facebook.com web pages. I removed the block, and the buttons appear.

    I totally with you on the DNN 3.2.2 site comment....it's causing me a lot of grief to maintain. I have a few items to clean up, and then we're going to schedule to upgrade to either 6.x or 7. I haven't done an upgrade before, so we're probably going to have to outsource that step...depending on time constraints.

    Thank you again. Lesson learned for others out there...don't just pass off looking at your antivirus...it can cause issues.


    ---