Posts with tag ios

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...

Personal thoughts on web development

Or as David Walsh would say, “confessions of a web developer“. Until 2 years ago I had always seen Javascript as a poor language. It was painful to develop a simple script and expect it to work cross-browser. I had to write alert messages to be able to trace the execution of the functions and make try-and-error continuously to quickly find that silent error that could make you spend hours trying to find.

Continue reading about Personal thoughts on web development...