http://www.remi-grumeau.com/labs/iui/online.php

<!DOCTYPE html>
<html lang="en">
<head>
        <meta charset="utf-8">
        <title>online?</title>
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <script>
                var online = false;
                function isOnline() 
                {
                        var xmlhttp = new XMLHttpRequest();
                
                        xmlhttp.open("GET", "http://www.remi-grumeau.com",true);
                        xmlhttp.onreadystatechange=function() {
                                if (xmlhttp.readyState==4) 
                                {
                                        alert('online!');
                                        online = true;
                                }
                        }
                        xmlhttp.send(null);
                }
        </script>
 </head>


<body onload="isOnline()">
foobar
</body>

</html>


Any feedback appreciate!

R.

Le 11 mai 2010 à 17:11, Team a écrit :

> If there is no wi-fi connection, YT can't send anything.
> 
> Regards,
> Steve
> 
> 
> On May 10, 8:24 am, Christopher Knell <[email protected]> wrote:
>> As to Number 2: If I'm not mistaken, YT will do the checking for you.
>> 
>> 
>> 
>>> 2. What connection-checking has worked best for you? That is, if a
>>> person has an iPod touch without wi-fi connectivity at the time of
>>> clicking on the link or poster.jpg, what coding works best to check
>>> for the connection and relay a message back?
>> 
> 
> -- 
> 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.

Reply via email to