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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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