Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-2654

Android: HTTPClient Events Do Not Provide Event Source

    Details

      Description

      {html}<div><p>See <a href=
      "http://developer.appcelerator.com/helpdesk/view/62281">Helpdesk</a></p>
      <p>Basically,</p>
      <pre>
      <code class="javascript">xhr.onload = function(e)
      {
      Ti.API.error("Received request for property: "+ e.source.someProperty);
      };</code>
      </pre>
      <p><code>e.source</code> is <code>undefined</code></p></div>{html}

        Activity

        Hide
        Opie Cyrus added a comment -
        {html}<div><p>(from <a href=
        "/projects/32238/changesets/907b19d1aff9dcdd2468df1af9a5ae64ba335918"
        title=
        "Changeset [907b19d1aff9dcdd2468df1af9a5ae64ba335918]">[907b19d1aff9dcdd2468df1af9a5ae64ba335918]</a>)
        [<a href="/projects/32238/tickets/2654" title=
        "Ticket #2654">#2654</a> state:fixed-in-qa][<a href=
        "/projects/32238/tickets/1058" title="Ticket #1058">#1058</a>
        state:fixed-in-qa] update HttpClient to support app wide HttpClient
        instance</p>
        <p>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.<br>
        <a href=
        "https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9dcdd2468df1af9a5ae64ba335918">
        https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9...</a></p></div>{html}
        Show
        Opie Cyrus added a comment - {html}<div><p>(from <a href= "/projects/32238/changesets/907b19d1aff9dcdd2468df1af9a5ae64ba335918" title= "Changeset [907b19d1aff9dcdd2468df1af9a5ae64ba335918] "> [907b19d1aff9dcdd2468df1af9a5ae64ba335918] </a>) [<a href="/projects/32238/tickets/2654" title= "Ticket #2654">#2654</a> state:fixed-in-qa][<a href= "/projects/32238/tickets/1058" title="Ticket #1058">#1058</a> state:fixed-in-qa] update HttpClient to support app wide HttpClient instance</p> <p>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.<br> <a href= "https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9dcdd2468df1af9a5ae64ba335918"> https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9 ...</a></p></div>{html}
        Hide
        Marshall Culpepper added a comment -
        {html}<div><p>verified on Nexus S / 2.3.2</p></div>{html}
        Show
        Marshall Culpepper added a comment - {html}<div><p>verified on Nexus S / 2.3.2</p></div>{html}

          People

          • Assignee:
            Opie Cyrus
            Reporter:
            Don Thorp
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development