Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     eventpage=num
  2.     if (eventpage==1){
  3.         count=1
  4.     }
  5.     console.log(count)
  6.     var actionEndpoint = "/ranking/filterRanking_event_api/"+event+"?eventpage="+eventpage;
  7.     var httpMethod = "GET";
  8.     formfilterData = filterGeneral.serialize();
  9.     $.ajax({
  10.         url: actionEndpoint,
  11.         method: httpMethod,
  12.         data: formfilterData,
  13.         success: function (data) {
  14.             $(".rankingevent .cds_table").html(" ")
  15.             $(".rankingevent .cds_table").append("<tr><th></th><th title='posizionenonfiltrata'>Pos</th><th title='posizionefiltrata'>Pos*</th><th>UtenteeSquadra</th><th>Punti</th></tr>")
  16.             $.each(data.ranking_list, function (index, value) {
  17.                 $(".rankingevent .cds_table").append("<tr><td id='changepos'>"+value.changepos+"</td><td id='realpos'>"+value.rank+"</td><td id='filterpos'>"+count+"</td><td id='userteam'>"+value.user_name+"<span>"+value.user_team+"</span></td><td id='point'>"+value.point+"</td></tr>")
  18.                 count=count+1
  19.                 console.log(count)
  20.             })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement