Skip to:
Content
Pages
Categories
Search
Top
Bottom

Need Help with a share plugin i’m creating


  • modemlooper
    Moderator

    @modemlooper

    I am extending on the tweet button plugin and creating a share button that as more options. The problem is when I add an activity update and the ajax refreshes and adds it to the stream its not calling the javascript for the buttons. Any update that was loaded after a page refresh then the buttons show up.

    What are my options?

    New at javascript and and want to learn more. Button testing over here: http://tempsg.com/activity/

    Here you can see it doesnt load the javascript thats used to call the buttons.
    Screen shot 2010-08-21 at 5.21.38 PM

Viewing 9 replies - 1 through 9 (of 9 total)

  • modemlooper
    Moderator

    @modemlooper

    Hmm, maybe my approach is wrong and I shouldn’t load the buttons until “share’ is clicked.


    modemlooper
    Moderator

    @modemlooper

    Weird Twitters js works fine but BUZZ and FB does not. FB likes button via iframe works.


    PH (porsche)
    Participant

    @porscheheritage

    Oh boy, I love this.. it was exactly what I was searching for. searched “Share” and this was the first hit!


    mvvspr
    Participant

    @mvvspr

    Liked it very much.A value addition to any site.
    @modemlooper
    When can we expect it in repo.

    Thanks,
    Prashant

    Excellent…nothing more to say !

    One question tho: is there any way to track shares ? Like how many times an activiy item has been shared in Buzz, FB, etc…

    Is there a download for this yet? Looks promising.


    modemlooper
    Moderator

    @modemlooper

    Not ready yet, having trouble getting 3-party buttons to work when you update the activity stream with ajax as it doesn’t reload the javascript for the buttons to show up.

    Anyone good with jquery and loading external scripts via ajax?


    r-a-y
    Keymaster

    @r-a-y

    It’s because FB and Buzz uses javascript to render the button.
    And because you’re trying to load javascript on an AJAX call, this won’t work.

    I wouldn’t call myself a jQuery ninja, so I can’t really help you out here I’m afraid.
    Not sure if it’s possible.

    *Edit – Maybe try jQuery.getScript?
    http://api.jquery.com/jQuery.getScript/

    Without seeing your javascript, hard to comment. But if you’re doing anything like jQuery(‘#something’).click( function() { … } ), use jQuery(‘#something’).live( ‘click’, function() { … } ) instead.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Need Help with a share plugin i’m creating’ is closed to new replies.
Skip to toolbar