M
M
Maybe_V2016-08-12 10:20:08
JavaScript
Maybe_V, 2016-08-12 10:20:08

Interaction between users using jquery ajax - is it possible?

Is it possible to implement interaction between users using Jquery ajax?

Two users are authorized on the site, one of them makes a change to the database, which they have access to at the same time (for example: the contents of which are open in both - they see the same data at the same time), it is necessary that the second user after saving this data, without reloading the page - saw them!

Is it possible to do this on Jquery ajax ? Or do you need some other technology?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Rikcon, 2016-08-12
@Rikcon

If you need Ajax directly, then welcome to javascript.ru/ajax/comet/long-poll
BUT it's much better to do as Nikolai Petyukh advises and take websockets.

H
hetzerok, 2016-08-12
@hetzerok

Yes, you can. Google long polling. However, real-time interaction is more a server issue than a frontend. In my opinion, a bunch of WebSockets + NodeJS looks promising in this matter. As a database, RethinkDB looks interesting with the ability to immediately return information about the added data.

D
Dmitry Belyaev, 2016-08-12
@bingo347

In my opinion, a bunch of web sockets (transport) and rethinkdb (base) are ideal for the task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question