[development] external vote button?

Yuval Hager yuval at avramzon.net
Tue Jan 22 09:30:04 UTC 2008


On Tuesday 22 January 2008, Hardik Shah wrote:
> Hi All,
> I am trying to add an external vote button like diggit on one of the site
> http://newskicks.com i have figured out that the url is something like
> this:
>
> a href="/vote_up_down/node/241/1?destination=Popular%2FAll
>
> here 241 is node url and 1 is the vote.
>
> now i want to use a java script who vote for the story on this url and then
> gives me back the number of votes after tht,any idea how to do it?
>
> thanks for any hel in advance.
>

Isn't this how vote_up_down works already? Take a look at ajax_vote_up_down.js 
in the module directory.

--y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.drupal.org/pipermail/development/attachments/20080122/0dc64e53/attachment.pgp 


More information about the development mailing list