Ahhh … so my XML access idea was not THAT stupid : ) R.
Le 28 avr. 2010 à 00:35, Sean Gilligan a écrit : > Venkatesh CM wrote: >> >> If you want to detect through WebKit or Safari. You can use >> >> navigator.onLine >> Which will indicate online or offline >> > > I think I remember reading that onLine can give false positives (i.e. that it > can say you are online when you really aren't) > > So you might want to double-check that navigator.onLine is reliable enough > for your application. I decided it was not reliable enough for 'reachability > testing' as required by Apple for acceptance into the app store. > > I started a reachability plugin for iUI that uses ajax calls to make sure a > server can actually be reached. It is a "sandbox" extension and I have only > tested it briefly, but it might be helpful to someone. > > The code is in Mercurial (source control) here: > http://code.google.com/p/iui/source/browse/#hg/web-app/iui/ext-sandbox/reachability > > There is a live demo here: > http://iui-js.appspot.com/iui/ext-sandbox/reachability/reachability-demo.html > > It requires that you pull an unreleased version of iUI from source control in > order to use it. (or wait for iUI 0.40-dev3) > > -- Sean > > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
