Skip to content

Instantly share code, notes, and snippets.

@iraycd
Last active March 22, 2021 12:19
Show Gist options
  • Save iraycd/e5fc9c642b4923347919 to your computer and use it in GitHub Desktop.
Save iraycd/e5fc9c642b4923347919 to your computer and use it in GitHub Desktop.
JNTU Shortcut Code.
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");
}
}
});
}
@v805
Copy link

v805 commented Mar 21, 2021

Results

@iraycd
Copy link
Author

iraycd commented Mar 22, 2021

Did this work? Hahaha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment