Results 1 to 3 of 3

Thread: Using addthis share tool in sencha touch

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    3
    Vote Rating
    1
      0  

    Default Using addthis share tool in sencha touch

    Hi,
    I am new to sencha touch & developing a sencha touch application where I need to use the addthis tool(share tool), what I am doing.....

    { xtype:'panel',
    html:'',
    height: 100,
    listeners:{
    'render': function(panel) {
    var html = '<div class="addthis_toolbox addthis_default_style "><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e68c0060770fbd6"></script>';
    panel.update(html, true, function() {
    // called after the scripts are loaded. this is an optional param
    });
    }
    }
    },

    but without any success, I am unable to see the share button. Can anybody tell me what I am doing wrong ? how can I get addthis tool working with sencha touch. thanks arpan.....

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Do you have to have a <div> with a certain id for it to render?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Hi,

    I have a problem with AddThis too. I'm using Sencha Touch 2 and when I try to paste AddThis code to my app the following happens - buttons are displayed correctly and on desktop everything is working perfectly, but, on iPad when I tap any share button it becomes highlighted (like hover state) and nothing more happens. It is not an issue of my particular app, because I tried to paste AddThis to one of the sencha example app and the result is the same.

    Maybe it's an issue of sencha or maybe I do something wrong. Looking forward for your answer. Thanks in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •