You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/22 04:32:42 UTC
[jira] [Commented] (CB-5965) XHR with responseType other than
'text' calls fail on WP8
[ https://issues.apache.org/jira/browse/CB-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943878#comment-13943878 ]
ASF subversion and git services commented on CB-5965:
-----------------------------------------------------
Commit 6b1004e7df2c28766bd3de2338667bd1157ca096 in cordova-wp8's branch refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;h=6b1004e ]
CB-5965 support set responseType, get response
> XHR with responseType other than 'text' calls fail on WP8
> ---------------------------------------------------------
>
> Key: CB-5965
> URL: https://issues.apache.org/jira/browse/CB-5965
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP8
> Affects Versions: 3.3.0
> Environment: Windows Phone 8
> Reporter: Piotr Plewa
> Assignee: Jesse MacFadyen
>
> responseType in XHR calls is ignored,
> for example setting it to 'arraybuffer' or 'blob' fails on Windows Phone 8 because the value is not being propagated into "wrappedXHR" as well as there is no 'response' property in the wrappedXHR Object.
> The workaround is to use xhr.wrappedXHR.response instead or add into XHRHelper.cs:
> {code:javascript}
> Object.defineProperty(this, 'responseType', {
> set: function(val) {
> this.wrappedXHR.responseType = val;
> }
> });
> Object.defineProperty(this, 'response', {
> get: function() {
> return this.wrappedXHR.response;
> }
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)