{ "id": "91991", "key": "AC-2976", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-10T23:33:51.000+0000", "created": "2012-05-18T09:31:33.000+0000", "labels": [ "defect", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have a simple form/UI with a Titanium.UI.WebView that targets an iPad output.\r\n> I point the webview (its URL property) to a very boring html page served up by a box on our network.\r\n> I hit \"go\"\r\n> the iOS simulator starts up\r\n> that simple page is displayed fine\r\n> I change the URL to very simple ASPX (.net) page\r\n>>> an asp:button and an asp:label\r\n>>> the button has a server side event to put some text in the label\r\n>>> the button also has some client-side JS code to alert('hi')\r\n> I hit \"go\"\r\n> The page displays fine\r\n> I click the button\r\n> the JS code alert triggers; i see the alert\r\n> the label's text DOES NOT GET updated ... NOT working here\r\n> (something is preventing the page's server side lifecycle from completing)\r\n> as long as I am on the iOS emulator, i fire up mobile Safari.\r\n> go to that same page\r\n> click the button\r\n> i get the JS/alert\r\n> the label's text DOES GET updated ... it works.\r\n>>>>>>>>>>>\r\nNow, here is where the inconsistency arrises.\r\n> I change the output/target for the application to be android.\r\n> I hit \"go\"\r\n> The android emulator fires up\r\n> The app launches and goes to my page\r\n> I click the button\r\n> The JS code does execute; I see the Alert 'hi'\r\n> The label's text does get updated\r\n> Everything works; page life cycle with the server completes successfully.\r\n\r\nSO, i am seeing two very distinct and project-threatening behaviours with Titanium depending on what I am targeting. I know my simple page works. It's a simple page; no reason it shouldn't work. \r\n\r\nSummary: \r\nApp with webview deployed to iOS ... does not work.\r\nApp with webview deployed to android ... does work.\r\nHitting the same page on either platforms' browser ... does work.", "attachment": [], "flagged": false, "summary": "inconsistency with Titanium.UI.WebView", "creator": { "name": "mc_rhycer", "key": "mc_rhycer", "displayName": "Ryan Rice", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mc_rhycer", "key": "mc_rhycer", "displayName": "Ryan Rice", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "> Mac OSX Lion 10.7.4\r\n> Titanium Studio, build: 2.0.1.201204132053\r\n> iOS simulator Version 5.1 (272.21)\r\n> Android; latest/greatest", "comment": { "comments": [ { "id": "196004", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you please provide a reproducible sample test case? ", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T14:32:55.000+0000", "updated": "2012-05-24T14:32:55.000+0000" }, { "id": "196726", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "I solved a webView with JS bug today by using the latest CI build from http://builds.appcelerator.com.s3.amazonaws.com/mobile/master/mobilesdk-2.1.0.v20120530151809-osx.zip\r\n\r\nAn older 2.0.1 version had inconsistencies between iOS and Android. \r\n\r\nIt might be worth giving that a try. ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-31T11:18:00.000+0000", "updated": "2012-05-31T11:18:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }