title: function calling error in ajax
body: <pre><code>function manageVoting() {
      $("div.votemaincontainer").each(function () {
          // variable Declaration and intialization.
          var myRating = parseInt($(this).find('#[id$=hfMyVote]').val());
          var currentVote = parseInt($(this).find('#[id$=hfCurrentVote]').val());
          $('.VoteDownImage').live(click, function () {
              ajaxcall(0);
          });
          $('.voteupImage').live(click, function () {
              ajaxcall(1);
          });
      }
  
      function ajaxcall(a){ // here it's giving error.
          var questionID = parseInt($(this).find('#[id$=currentquestionId]').val());
          var objectType = 100;
          var previousvote = 2;
          $.ajax({
              url: 'UserControls/Vote/VoteAction.aspx/Voting',
              cache: false,
              type: 'POST',
              data: '{ObjectType: "' + objectType + '", guid: "' + currentGuid + '",previousVote: "' + previousvote + '",vote:"' + a + '"}',
              contentType: 'application/json; charset=utf-8',
              dataType: 'json',
              success: function (data) {
                  var result = eval(data.d);
              }
          });
      }
      $(function () {
          //    manageVoting();
      });
  </code></pre>