Skip to main content

Joel Liu's Library tagged @anywhere   View Popular, Search in Google

Apr
24
2010

    • tweetBox() will append a box in which the users can enter their comments and tweet them via your site.
      tweetBox can receive an object as parameter, with the following properites:

       
      • counter (boolean, default true)
        Whether or not to show the counter for remaining characters.
      • height (integer, default 65)
        The height of the box, in pixels.
      • width (integer, default 515)
        The widht of the box, in pixels.
      • label (string, default "What's happening?")
        The text above the box.
      • defaultContent (string, default none)
        You can enter by default the URL, a @mention, a #hashtag, etc.
      • onTweet (function)
        It's called after the tweet button is pressed. It receives two arguments: plain text tweet and HTML tweet.
       

      A default tweetBox can be called after the element with the comments class with the following snippet.

  • 1 more annotation(s)...
  • custom tweetBox result
1 - 2 of 2
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo
Move to top