I have 15 html anchor elements in my page with the following handler:
If I reload the page, I can call vote function again for once. But I don't want to reload the entire page for every simple request I send to the server and that's why I am interested in using AJAX.
Thanks in advance.
It was kinda funny, but after renaming the vote function to vote_news, I got everything working. I think there was another element in the page called "vote" which prevented the vote function to be called.
I hope this post can help somebody.
|All times are GMT -5. The time now is 04:26 PM.|