I use jquery for my entire ajax article, I don't know if this is good, but I am using it now.
I have one text box when the user enters the characters that I call on the server side into it, get some values and add them to the view.
The code I use below works fine , but . I want to improve it a bit.
How can I make this ajax call so that users who want to examine the source code of my page do not see what I call here?
So basically I want to hide from the page source what url, what type and data that I use here is possible?
$(function () {
$("#txtSearch").keyup(function (evt) {
$.ajax({
url: "/Prethors/Users/SearchUsers",
type: "POST",
data: "text=" + this.value,
success: function (result) {
$("#searchResult").prepend("<p>" + result + "</p>");
}
});
});
});