New answers tagged

0

So it seems that AJAX is basically one way of using HTTP... and other ways of using HTTP include REST. Is that correct? REpresentational State Transfer (REST) is a way of designing communication protocols. It is a set of constraints placed upon communication protocols that by following these constraints allows these communication protocols to last a long ...


0

Using AJAX is not just for interactivity. Displaying new data and updating a section of the page is a valid approach. Thus, this is IMHO a legal use case. There is an aspect of the described behavior which impacts usability. That is the user sees an empty page and then out of a sudden data appears. This is solvable using loaders or pre-rendering and ...


5

Ajax and rest are indeed two ways of using HTTP. But you can use both together. HTTP (HyperText Transfer Protocol) is a protocol to send files (and data) from the server to the client. Originally it was intended to send static HTML files from the server to the client when the client's browser requested a (HTML) page. The HTML can contain hypertext links ...


0

I understand your concern that you want to keep JS code to bare minimum and rely on HTML and plain HTTP for all server calls. If your purpose is solved by doing so you can well keep out of AJAX. But it will be wrong to say that AJAX is useful only in content rich environments. Asynchronous requests not only provide a faster User Experience but are useful ...


-2

Yes it is. AJAX requests the HTTP too, but what's the best you can do it without reloading page. In example a system where you need to delete single users one-by-one it's more effective to delete them without reloading page, because you don't have to wait until page is loaded when choosing more users to delete. AJAX is more user-friendly.


0

This highly depends on a number of parameters. The update interval should be related to the reaction time expected by the users and the work patterns of the support workers. As you did not provide this information, it's impossible to give a definitive answer. 5 seconds seems unnecessary for typical support desk tasks. 1 minute sounds more reasonable for "...



Top 50 recent answers are included