Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2654] Android: HTTPClient Events Do Not Provide Event Source

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:43.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M03
ComponentsAndroid
Labelsandroid, defect, enterprise, release-1.6.0, reported-1.5.1, rplist
ReporterDon Thorp
AssigneeOpie Cyrus
Created2011-04-15T03:26:01.000+0000
Updated2011-04-17T01:59:43.000+0000

Description

See http://developer.appcelerator.com/helpdesk/view/62281">Helpdesk

Basically,

xhr.onload = function(e)
{
    Ti.API.error("Received request for property: "+ e.source.someProperty);
};

e.source is undefined

Comments

  1. Opie Cyrus 2011-04-15

    (from [907b19d1aff9dcdd2468df1af9a5ae64ba335918]) [#2654 state:fixed-in-qa][#1058 state:fixed-in-qa] update HttpClient to support app wide HttpClient instance

    Modified TiHTTPClient to be a static member so that the client values such as cookies will live over multiple requests. Also modifed the credentials to now pay attention to the url scope they are assigned to and not used globally. Made an additional change to set the source property for HttpClient callbacks.
    https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9dcdd2468df1af9a5ae64ba335918"> https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9...

  2. Marshall Culpepper 2011-04-15

    verified on Nexus S / 2.3.2

JSON Source