I am creating a liking and disliking system on my website. Whenever user will click on like button an ajax request will be made to increment in like of that particular post. Similarly when user click on dislike button it will increment in dislikes.
Now what i want is that i want to fetch the information for the post likes and dislike counts. For this purpose request will be made by ajax and after processing page will return this associative array. Now i want to use these values on my page returned by the remote page.
I want to know how can i let my php script to communicate with my Javascript client.
Thanks
Array ( [likes] => 4 [dislikes] => 5 [like_width] => 44 [dislike_width] => 55 [message] => [dislike_button] => [like_button] => )