top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which Side Controls an Ajax Interaction – Server Side or Client Side discribe?

0 votes
1,546 views

When i run a this code giving some error.

posted Jul 7, 2014 by Devyani

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Establishing control in any Ajax interaction is not a black and white process. Control can either be server-side, or use a mix of server-side and client-side controllers.
Client + Server-Side Control: In this structure, one may use allocate all presentation related control to JavaScript on the client side. This includes manipulating pages, rendering data, processing events, etc. The server-side, meanwhile, handles things such as updating model data and delivering it to the client. This is a more secure architecture as the server does not have in-depth knowledge of data being presented on the client-side.
Central Server-Side Control: In this architecture, control stays with the server-side which pushes updates to the client DOM through JavaScript. It is important to ensure that the server-side stays in sync with the client side when using this control method.

answer Jul 11, 2014 by Vrije Mani Upadhyay
Similar Questions
+1 vote

I have a web application which is deployed on a Tomcat server (version 7). I have set the session timeout value as 10 minutes in the web.xml file. In pages with no Ajax call, the session time out value is reset promptly. But it is not renewed on pages with Ajax calls. Web application is taking user back to Login screen even though some activity is happening on the page (with Ajax).

Can anyone help me?

0 votes

Please give the example for both.

...