Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BF48D84A for ; Wed, 14 Nov 2012 14:48:14 +0000 (UTC) Received: (qmail 37194 invoked by uid 500); 14 Nov 2012 14:48:13 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 37173 invoked by uid 500); 14 Nov 2012 14:48:13 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 37125 invoked by uid 500); 14 Nov 2012 14:48:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 37119 invoked by uid 99); 14 Nov 2012 14:48:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 14:48:12 +0000 Date: Wed, 14 Nov 2012 14:48:12 +0000 (UTC) From: "Remzi Cavdar (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <934597875.113965.1352904492498.JavaMail.jiratomcat@arcas> In-Reply-To: <525270630.113818.1352900532774.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1846) Offline event doesn't work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497135#comment-13497135 ] Remzi Cavdar commented on CB-1846: ---------------------------------- I use this for every html page of my app :P > Offline event doesn't work > -------------------------- > > Key: CB-1846 > URL: https://issues.apache.org/jira/browse/CB-1846 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.2.0 > Environment: Samsung Galaxy S2 and Google Nexus 7 > Reporter: Remzi Cavdar > Assignee: Joe Bowser > Fix For: 2.2.0 > > > The offline event doesn't work and I had said this before release, but you guys wanted to release PhoneGap 2.2.0 > This is my code: > document.addEventListener("deviceready", onDeviceReady, false); > function onDeviceReady() { > document.addEventListener("offline", function() { > alert("Er is geen internet verbinding!\nSchakel Wifi of 3G in"); > }, false); > } > /* English: alert("No internet connection!\nPlease turn on Wifi or 3G"); */ -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira