Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E4189C4F for ; Mon, 18 Jun 2012 08:27:47 +0000 (UTC) Received: (qmail 66938 invoked by uid 500); 18 Jun 2012 08:27:46 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 65903 invoked by uid 500); 18 Jun 2012 08:27:45 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 65831 invoked by uid 99); 18 Jun 2012 08:27:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 08:27:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 809C114285F for ; Mon, 18 Jun 2012 08:27:43 +0000 (UTC) Date: Mon, 18 Jun 2012 08:27:43 +0000 (UTC) From: "Avidan Chen (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1627617171.24091.1340008063529.JavaMail.jiratomcat@issues-vm> In-Reply-To: <201771535.52774.1336699429453.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-751) Undefined function is called when orientation change 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-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13395478#comment-13395478 ] Avidan Chen commented on CB-751: -------------------------------- OK thanks. So it'll probably take a couple of months at least... Just a quick question: Is there a way to programmatically change orientation in javascript? > Undefined function is called when orientation change > ---------------------------------------------------- > > Key: CB-751 > URL: https://issues.apache.org/jira/browse/CB-751 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.6.0, 1.6.1, 1.7.0 > Environment: ipod, ios 5.1 > Reporter: Clement Vollet > Assignee: Shazron Abdullah > Fix For: 1.8.0 > > > I get an undefined exception when changing the orientation of the device. > Steps to "recreate": > in a new project, add the following in index.html: > function onDeviceReady() > { > // do your thing! > navigator.notification.alert("Cordova is working") > window.onerror=function(error_msg, URL, line_number) { > console.log("WINDOW > Message: " + error_msg); > console.log("WINDOW > URL: " + URL); > console.log("WINDOW > Line: " + line_number); > } > } > And then in the simulator, rotate the screen. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira