Patent ID: 8938491
Filing Date: 2015-01-20
Classification: G06F

Abstract:
1. A method for secure binding of client calls and server functions, the method comprising: receiving a request for a webpage at a server on a server-side of a network; retrieving the webpage by the server, the webpage comprising JavaScript code that includes one or more server-side functions that are configured to be executed by the server on the server-side of the network; identifying by the server, a client-side JavaScript proxy code for each of the one or more server-side functions, wherein calling the client-side JavaScript proxy code from a client on a client-side of the network causes the server to execute the one or more server-side functions on the server-side of the network; altering a name of each client-side JavaScript proxy code at a predetermined time to generate an altered proxy code for each client-side JavaScript proxy code, wherein the name identifies a function, and wherein calling the altered proxy code from the client on the client-side of the network causes the server to execute one of the one or more server-side functions on the server-side of the network; inserting each altered proxy code into the webpage to create a modified webpage at the server by replacing each server-side function with the respective altered proxy code; declaring each server-side function to be callable or not callable from the client by specifying a proxy property on a respective function object, wherein a proxy declared as not callable from the client cannot be called on the server from the client; adding an async function to each callable server side function that makes asynchronous calls that do not freeze a browser of the client while the request is processed; and transmitting the modified webpage to the client.