{ "id": "117869", "key": "TIMOB-14734", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-01T20:21:22.000+0000", "created": "2013-08-01T09:33:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.2", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:46.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "Not getting this.responseText from Ti.Network.createHTTPClient.\r\n\r\nSteps to reproduce:\r\n1)Copy paste the code in app.js of default titanium project and run the app.\r\n2)Click on the button 'create http client'.\r\n\r\nExpected result:\r\n1. Should see a window with label 'HTTP client test' & a button with text 'Create HTTP Client'. \r\n2. Should see an alert with message ' Success. See console for output'. \r\n You should see the HTML code for www.appcelerator.com. which is returned from this.responseText.\r\n\r\nActual Result:\r\n1. A window with label 'HTTP client test' & a button with text 'Create HTTP Client'. \r\n2. an alert with message ' Success. See console for output'. is seen.\r\n In console do not get output of this.responseText.\r\n \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttext:'HTTP client test',\r\n\tfont:{fontSize:20},\r\n\ttop:20,\r\n\tcolor:'brown'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle:'Create HTTP client',\r\n\theight:Ti.UI.SIZE,\r\n\twidth:Ti.UI.SIZE\r\n});\r\n\r\n\r\nbutton.addEventListener('click',function(e){\r\n\tvar url = \"http://www.appcelerator.com\";\r\n var client = Ti.Network.createHTTPClient({\r\n // function called when the response data is available\r\n onload : function(e) {\r\n \t Ti.API.info(\"Received text: \" + this.responseText);\r\n alert('Success. See console for output');\r\n },\r\n // function called when an error occurs, including a timeout\r\n onerror : function(e) {\r\n Ti.API.debug(e.error);\r\n alert('Failed to get data');\r\n },\r\n timeout : 5000 // in milliseconds\r\n });\r\n // Prepare the connection.\r\n client.open(\"GET\", url);\r\n // Send the request.\r\n client.send();\r\n});\r\n\r\n \r\nwin.add(lbl);\r\nwin.add(button);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Blackberry: Not getting this.responseText from Ti.Network.createHTTPClient", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Verified with:\r\n\r\nStudio: 3.1.2.201307261628\r\nSDK: 3.1.2.v20130730133101\r\nacs:1.0.4\r\nalloy:1.2.0-alpha\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.2-alpha\r\nOS: OSX 10.8.4\r\nDevice:Blackberry-Z10(v 10.0.10.261)\r\nblackberry SDK: 10.1.0.1020\r\n\r\n\r\n", "comment": { "comments": [ { "id": "264504", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/141", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T19:57:57.000+0000", "updated": "2013-08-01T19:57:57.000+0000" }, { "id": "279109", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Getting this.responseText from Ti.Network.createHTTPClient.\r\nWorking as expected.\r\nHence closing the issue.\r\n\r\nTested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311120707\r\nSDK:3.2.0.v20131111174605\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.0.3\r\nXcode:5.0.1\r\nDevice: Blackeberry Z 10\r\nOS: Mac OSX 10.9", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T11:12:07.000+0000", "updated": "2013-11-12T11:12:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }