Javascript function

The JavaScript functions are to used to make a request for an information to the server. The server process the request and returns the specific information.
 
JavaScript the same page integrates the information in the same page. The theme is that instead of refreshing the whole page with the response, it only refreshes the part which is being queried.
 
Ajax script is made up of two different functions, the first one is fetch Data () and the other one is filter Data (). The XML Http Request are created within the function, also the code is used to send the data located within this function.