php - Content update for all visitors through JavaScript -


i'm looking solution fix following problem: when hold down mousebutton, div change it's background-color red green , when lift button color change red again.

now works in own browser (my client side).. i'm trying when down button in browser, div should change it's color on screen aswell on screen of neighbour or other visitor.

can manage js/ajax? or need other server side scripting language php make onmousedown/up happen visitors if 1 person clicks?

the div should change it's color on screen aswell on screen of neighbour or other visitor

you absolutely need server-side support build such realtime application. if have choice of server-side technology, recommend looking node.js. also, want learn websockets.

edit:

you use service pubnub, host centralized messaging , distribution part of , have javascript libraries make easy. – @jason sperske


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -