I've got a blogging site hosted on Windows Sever, ASP.Net 3.5, ASP.Net AJAX, SQL Server in background.
I want to give bloggers a button like 'digg-it' which they can put on their blogs for the readers to click to thumb-up the post if they like it.
- Retrieve code from my website which will display the current count of the thumb-up.
- Increase the count on my website if the user thumbs up something.
Your help will be appreciated.
You can look into using SCRIPT callbacks loading JSON data instead of using XmlHttpRequest to get around the crossdomain issues.
You can use it like this in your HTML.
thumbHandlercode would have to output JSON with
handleYourData()wrapped around it so that your callback will be called with the JSON data as the argument.