-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.jsp
More file actions
41 lines (33 loc) · 1.22 KB
/
library.jsp
File metadata and controls
41 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<%@ include file="common/header.jsp" %>
<script>
var request=new XMLHttpRequest();
function searchInfo(){
var bookname=document.vinform.bookname.value;
var url="find.jsp?val="+bookname;
try{
request.onreadystatechange=function(){
if(request.readyState==4){
var val=request.responseText;
document.getElementById('mylocation').innerHTML=val;
}
}//end of function
request.open("GET",url,true);
request.send();
}catch(e){alert("Unable to connect to server");}
}
</script>
<div class="container">
<div class="w3-col" style="width: 10%"> </div>
<div class="w3-col" style="width: 80%">
<h4><b>Search Books From Here </b></h4>
<form class="w3-row" name="vinform">
<div class="container">
<div class="w3-col" style="width: 100%">
<input class="w3-input w3-border w3-validate" type="text" style="width:100%" name="bookname" placeholder="Enter book Name or Author Name" onkeyup="searchInfo()">
<span id="mylocation"></span>
</div>
</div>
</form>
</div>
<div class="w3-col" style="width: 10%"> </div>
</div>