How does the dispatch action call work in the Twitter sidebar

Posted by phwd on Stack Overflow See other posts from Stack Overflow or by phwd
Published on 2010-05-19T18:59:17Z Indexed on 2010/05/19 19:00 UTC
Read the original article Hit count: 210

Filed under:
|
|

I would like to understand how the call for replies works as follows:

<a href="http://twitter.com/replies" data="{"dispatch_action":"replies"}">
<span>@phwd</span>
</a>

This was taken from the homepage of Twitter.

The section in particular being:

data="{"dispatch_action":"replies"}"

I believe (think), it is using Twitter's own twitter.js script and I do not want to interfere(or copy) with their code, I rather just want to know how the call works.

My current setup is using Abraham's twitteroauth PHP library, jQuery and some Ajax to refresh the portion of the page needed using the following method : Use jQuery and PHP to build an Ajax-driven Web page [IBM link - I am a new user so I can only post one link]

I apologize if this question is not formatted/worded well, it is my first time. Also I tried searching DocType and StackOverFlow. The Related Questions show me Struts but I am not sure it is that.

© Stack Overflow or respective owner

Related posts about twitterapi

Related posts about JavaScript