AddThis.com button javascript problem

Discussion in 'JavaScript' started by AKnogood, Nov 1, 2008.

  1. #1
    Hi,

    I'm using the Addthis.com button using this code:


    <!-- ADDTHIS BUTTON BEGIN -->
    <script type="text/javascript">
    addthis_pub             = 'YOUR-ACCOUNT-ID'; 
    addthis_logo            = 'http://www.addthis.com/images/yourlogo.png';
    addthis_logo_background = 'EFEFFF';
    addthis_logo_color      = '666699';
    addthis_brand           = 'Your Site';
    addthis_options         = 'favorites, email, digg, delicious, myspace, facebook, google, live, more';
    </script>
    <a onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="" /></a>
    <script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
    <!-- ADDTHIS BUTTON END -->
    HTML:
    The problem is that when the user put his mouse over the button and select a social bookmark to submit the page, the current page is automatically redirected to my homepage. You can better see what I mean using the button on one of my page here. Since I know nothing about javascript I was wondering if there would be a tweak to not refresh or redirect my page after a submission...

    Thanks!
    Vincent
     
    AKnogood, Nov 1, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Works for me (FF3.0.3)
     
    keyaa, Nov 2, 2008 IP
  3. AKnogood

    AKnogood Active Member

    Messages:
    244
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I just noticed that it's working with FireFox but not with Internet Explorer...

    Any idea how to make it work with Internet Explorer?
     
    AKnogood, Nov 2, 2008 IP
  4. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #4
    doesn't work for me
    ff2.0
    if you try to place that code elsewhere on that page, does it work?
     
    Brandon Sheley, Nov 2, 2008 IP
  5. AKnogood

    AKnogood Active Member

    Messages:
    244
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #5
    No, always the same problem... My page gets redirected to my frontpage... :(
     
    AKnogood, Nov 4, 2008 IP