Last active
March 22, 2021 12:19
-
-
Save iraycd/e5fc9c642b4923347919 to your computer and use it in GitHub Desktop.
JNTU Shortcut Code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var results; | |
elec = $("#forward").attr("onclick").split("'"); | |
elec = elec[elec.length-2]; | |
ht = $("#htno").val(); | |
$("#forward").attr("onclick","gameon()"); | |
gameon = function(){ | |
console.log("Process Begins"); | |
$.ajax({ | |
type:'POST', | |
url: "http://jntuconnect.net/results/get_results", | |
data: "htno="+ht+"&ecode="+elec+"", | |
success: function(data){ //data contains JSON Object | |
if(data!=0){ | |
results = (data); | |
$("#results").html(data); | |
} | |
else | |
{ | |
console.log("Invalid HallTicket Number"); | |
} | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Results