Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSachan2 authored Aug 19, 2023
1 parent bcf43ab commit cd06f90
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
$("#roll").prop("disabled",true);
fillData(reson)
$("#change").prop("disabled",false)
$("#reset").prop("disabled",false)
$("#name").focus();
$("#reset").prop("disabled",false)
$("#name").focus();
}
}
function getRollasJsonObj(){
Expand All @@ -131,9 +131,11 @@
}
function saveRoll(reson){
var l=JSON.parse(reson.data);
localStorage.setItem('recno',l.RollNumber)
console.log("l",l)
localStorage.setItem("rec_no",l.rec_no)
}
function fillData(reson){
console.log("fillData")
saveRoll(reson)
var data=JSON.parse(reson.data).record;
$("#name").val(data.Name);
Expand All @@ -144,6 +146,7 @@
}
function resetForm() {
$("#roll").val("")
$("#roll").prop("disabled",false);
$("#name").val("");
$("#class").val("");
$("#address").val("");
Expand Down Expand Up @@ -173,9 +176,9 @@
function changedata(){
$("#change").prop("disabled",true);
jsonchg=validateAndGetFormData();
console.log(jsonchg);
console.log(localStorage.getItem("recno"))
var updateRequest=createUPDATERecordRequest("90931327|-31949328601670910|90950484",jsonchg,"SCHOOL-DB", "SCHOOL-TABLE",localStorage.getItem("recno"))
console.log("#",jsonchg);
console.log(localStorage.getItem("rec_no"))
var updateRequest=createUPDATERecordRequest("90931327|-31949328601670910|90950484",jsonchg,"SCHOOL-DB", "SCHOOL-TABLE",localStorage.getItem("rec_no"))
jQuery.ajaxSetup({async:false})
var reson=executeCommandAtGivenBaseUrl(updateRequest,
"http://api.login2explore.com:5577", "/api/iml")
Expand Down

0 comments on commit cd06f90

Please sign in to comment.