Skip to main content
14 of 23
Rollback to Revision 12 - Reverting my domain warning now they're renewed it
Adam Wright
  • 4.3k
  • 2
  • 19
  • 20

StackTack, a JavaScript widget you can stick anywhere

##Screenshot / Code Snippet alt text http://img24.imageshack.us/img24/417/captureqi.png

<head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://app.stacktack.com/jquery.stacktack.min.js"></script>
    <script type="text/javascript"> 
        $(document).ready(function() {
            $(document).stacktack();
        });
    </script>
</head>

<body>
    <div id="stacktack-518021"></div>
</body>

##About

StackTack is a widget for bloggers and writers to easily tack questions and answers from the Stack Exchange sites such as Stack Overflow, Server Fault and Super User, into their articles. The widget remains up to date as answers get added, modified, voted on and accepted.

It works by finding HTML elements with an id similar to "stacktack-518021" where the number is a Stack Exchange question ID. The widgets are then generated inside these containers.

The widgets can be heavily customized, both globally and on a per-question basis. Stylesheets can be overridden to change the appearance and answers can be filtered in many different ways.

See it in action with our live demo.

Complete information and instructions are available here on the StackTack Wiki.

###License

BSD - Do with it what you will, but please give Zamtools credit and please let us know what you're doing with it. We're curious to see how people use this.

###Download

No download necessary. StackTack is globally hosted on Amazon S3. Simply add a reference to it in your HTML.

###Platform

StackTack is intended for use on web pages, blogs and articles. Anywhere an author may want to include a Stack Exchange question.

###Contact

Bug reports and communications can be made on the StackTack BitBucket bug tracker.

###Code

StackTack is written in JavaScript and jQuery and consumes the Stack API directly via Ajax requests. The source can be found at the StackTack BitBucket repository.

StackTack has also been integrated into the SAggregator created by Farseeker.

Soviut
  • 3.3k
  • 3
  • 20
  • 14