How to refresh or update my content through jquery ajax when ever server changes the code?
Remember:-
- Take this stackoverflow page as example of what i am looking for. It updates its content with out clicking anywhere, With out any timeout or time interval functions. So like this page i am looking for.
- I am working on cordova, so that i can get access from server only via jquery ajax. So how to invoke JS functions from server or only if server content changes?