How to hide details in jquery ajax from browser page source

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>");      
                }
            });
        });
    });
+5
4

, , , javascript.

javascript, URL-.

, , js. http://jscompress.com/

+4

, . , ajax, .

- .

- . ( ).

- .

:

, URL-, , , - , .

, "/Prethors/Users/SearchUsers"

"/AnonymousCall?code=5"

,

+4
+3

console.clear(); ajax: P reqs , .

0

All Articles