ShareThis Forums » Users

sharethis and ajax-pager

(3 posts)

Tags:


  1. snirgel
    Member

    Hi,

    i want to integrate the sharethis-button on our search for every single searchresult. In the search i recharge the results (always 10) with an ajax-pager. On the first 10 results, loadad without an ajax-request, the sharethis-function is fine, but if i would see the next 10 results, sharethis doesn't work and the whole site would be empty.

    We use the symfony - framework and for Javascript the integrated prototype-framework.

    I would be happy, if you have any idea about this problem or some other sources that describes the working with sharethis and symfony.

    Thanks,

    Karina

    Posted 4 months ago #
  2. I have a similar issue where users can change the videos on a page using Ajax. Is there a way to programmatically change the button?

    Using JQuery it would be something like this (but that actually works)...

    $("div#mySharediv").attr("innerHTML",
    "<script type='text/javascript'>SHARETHIS.addEntry({ " +
    " title:'Check out this video on GotCast.com', " +
    " url: '<%=ConfigurationManager.AppSettings("PathToRoot") %>" + slideVideo.UserName + "/videos/" + slideVideo.VideoID + "', " +
    " summary:'Vote for " + slideVideo.UserName + " on GotCast.com.', " +
    " icon: 'http://img.youtube.com/vi/" + slideVideo.SourceVideoID + "/1.jpg' " +
    " }, {button:true, offsetLeft:'-435px', offsetTop:'-250px'} );alert(1);<\/script>");

    Posted 4 months ago #
  3. I have a similar issue where users can change the videos on a page using Ajax. Is there a way to programmatically change the button?

    Using JQuery it would be something like this (but that actually works)...

    $("div#mySharediv").attr("innerHTML",
    "<script type='text/javascript'>SHARETHIS.addEntry({ " +
    " title:'Check out this video', " +
    " url: 'www.mysite.com/videos/30994', " +
    " summary:'This is a great video!', " +
    " icon: 'http://img.youtube.com/vi/a3fad33/1.jpg' " +
    " }, {button:true, offsetLeft:'-435px', offsetTop:'-250px'} );<\/script>");

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.