Well … simplier : )
I definitely should take a real deep look at this iphone webkit documentation
:-S
Le 26 avr. 2010 à 15:25, Venkatesh CM a écrit :
> Sorry forgot to mention. window.navigator.onLine is avaliable as part of HTML
> 5. I think iPhone OS >= version 2.2 supports Window.navigator.onLine as part
> of its HTML5 support.
>
> in javascript
>
> if (window.navigator.onLine) {
> //code for online
> }
> else{
> //code for offline
> }
>
> check-out the link below for more info.
>
> http://www.whatwg.org/specs/web-apps/current-work/#browser-state
>
>
>
> On Mon, Apr 26, 2010 at 6:47 PM, Venkatesh CM <[email protected]> wrote:
> If you want to detect through WebKit or Safari. You can use
>
> navigator.onLine
> Which will indicate online or offline
>
> regards
> venkatesh
>
> On Mon, Apr 26, 2010 at 5:27 PM, Excell <[email protected]> wrote:
> Hi all
>
> Is there anyway to tell if the phone has an internet connection or
> not ?
>
>
> Thanks
>
> Excell[Roger]
>
> --
> 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.
--
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.