Posts with tag ajax

Server Sent Events on iOS

You have probably heard about web sockets, which promise to be a better alternative to short and long polling to achieve real time updated websites. But maybe you didn’t know about server sent events. They are nice to send information from server to client using the same server technology you probably have, using a lighter approach than polling.

Here you can find a nice explanation, and you can give it a try by visiting this Server-sent Event Demo from a capable browser.

Continue reading about Server Sent Events on iOS...

Avoid showing address bar on iPhone when loading ajax

You can find a demo showing the default behaviour and the one using Facebook’s technique. Use an iPhone or iPod Touch to see the effect.

When clicking a link for ajax navigation on iPhone and iPod Touch, the navigation bar slides down and up for every link, even when they are enhanced to support ajax navigation and its click event is captured and we load content using XMLHttpRequest instead.

Continue reading about Avoid showing address bar on iPhone when loading ajax...