javascript - Refresh DIV by command from server -


i want have page uses mysql database information, let's 0 or 1

i want page auto refresh div value 0 or 1 database @ specific interval.

but viewing page same information @ same time. server in charge of interval.

how this?

there several possibilities:

1) websockets latest of technologies. if want near realtime update of page , have infrastructure providing possibilities, way go

2) comet or long polling second alternative

3) primitive - working - startingpoint poll server. stackoverflow article


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -