Script wurde entwickelt
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
<!-- Webiste-Content-->
|
<!-- Webiste-Content-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="containerseiterand" style="margin-left:auto;margin-right:auto">
|
<div id="containerseiterand" style="margin-left:auto;margin-right:auto">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div id="cont1">
|
<div id="cont1">
|
||||||
@@ -212,5 +213,34 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate></asp:UpdatePanel>
|
</ContentTemplate></asp:UpdatePanel>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
BindControls();
|
||||||
|
});
|
||||||
|
|
||||||
|
function BindControls() {
|
||||||
|
$("#txt_LKW").autocomplete({
|
||||||
|
source: function(request, response) {
|
||||||
|
$.ajax({
|
||||||
|
url: "WebService.asmx/Show",
|
||||||
|
data: "{ 'sLookUP': '" + request.term + "' }",
|
||||||
|
dataType: "json",
|
||||||
|
type: "POST",
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
dataFilter: function(data) { return data; },
|
||||||
|
success: function(data) {
|
||||||
|
response($.map(data.d, function(item) {
|
||||||
|
return { value: item }
|
||||||
|
}))
|
||||||
|
},
|
||||||
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
|
alert(textStatus);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
minLength: 1 // MINIMUM 1 CHARACTER TO START WITH.
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user