![]() |
JavaScript function disappears after getting called for once
Hi,
I have 15 html anchor elements in my page with the following handler: Code:
onclick="vote(this)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. I'm not very familiar with JavaScript tricks, I bet there is a trick to handle this situation. 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 06:33 PM. |