cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinola Durante (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-6450) [WP8] XHRHelper incompatibility with Sencha Touch
Date Wed, 16 Apr 2014 08:36:17 GMT

     [ https://issues.apache.org/jira/browse/CB-6450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marco Spinola Durante updated CB-6450:
--------------------------------------

    Description: 
My app uses Cordova 3.4.0 & Sencha Touch successfully on iOS and Android. I am extending
support to WP8, but the app wont start correctly.
The problem lies in the XHRHelper (probably in the injected JS code), because if I load the
app in the IE10 browser everything works fine.

>From Sencha Touch point of view loading of XML fails, although the reader returns 200,
I can see that the response.responseXML field is empty.

I tried to edit the injected JS script and change as follows:
{code:javascript}var funk = function () {
   window.__onXHRLocalCallback = function (responseCode, responseText) {
      alias.status = responseCode;
      if (responseCode == '200') {
         alias.responseText = responseText;
         // MY CHANGE HERE
         alias.responseXML = responseText;
         // END
      }
      else {
         alias.onerror && alias.onerror(responseCode);
      }
      alias.changeReadyState(XHRShim.DONE);
   }
   alias.changeReadyState(XHRShim.LOADING);
   window.external.Notify('XHRLOCAL/' + resolvedUrl);
}
{code}

but it didn't help.

  was:
My app uses Cordova 3.4.0 & Sencha Touch successfully on iOS and Android. I am extending
support to WP8, but the app wont start correctly.
The problem lies in the XHRHelper (probably in the injected JS code), because if I load the
app in the IE10 browser everything works fine.

>From Sencha Touch point of view loading of XML fails, although the reader returns 200,
I can see that the response.responseXML field is empty.

I tried to edit the injected JS script and change as follows:
{code:javascript}var funk = function () {
   window.__onXHRLocalCallback = function (responseCode, responseText) {
      alias.status = responseCode;
      if (responseCode == '200') {
         alias.responseText = responseText;
         // MY CHANGE HERE
         alias.responseXML = responseText;
         // END
      }
      else {
         alias.onerror && alias.onerror(responseCode);
      }
      alias.changeReadyState(XHRShim.DONE);
   }
   alias.changeReadyState(XHRShim.LOADING);
   window.external.Notify('XHRLOCAL/' + resolvedUrl);
}
{code}

but it didn't help


> [WP8] XHRHelper incompatibility with Sencha Touch
> -------------------------------------------------
>
>                 Key: CB-6450
>                 URL: https://issues.apache.org/jira/browse/CB-6450
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.4.0
>         Environment: WP8, IE10
>            Reporter: Marco Spinola Durante
>            Assignee: Jesse MacFadyen
>            Priority: Critical
>
> My app uses Cordova 3.4.0 & Sencha Touch successfully on iOS and Android. I am extending
support to WP8, but the app wont start correctly.
> The problem lies in the XHRHelper (probably in the injected JS code), because if I load
the app in the IE10 browser everything works fine.
> From Sencha Touch point of view loading of XML fails, although the reader returns 200,
I can see that the response.responseXML field is empty.
> I tried to edit the injected JS script and change as follows:
> {code:javascript}var funk = function () {
>    window.__onXHRLocalCallback = function (responseCode, responseText) {
>       alias.status = responseCode;
>       if (responseCode == '200') {
>          alias.responseText = responseText;
>          // MY CHANGE HERE
>          alias.responseXML = responseText;
>          // END
>       }
>       else {
>          alias.onerror && alias.onerror(responseCode);
>       }
>       alias.changeReadyState(XHRShim.DONE);
>    }
>    alias.changeReadyState(XHRShim.LOADING);
>    window.external.Notify('XHRLOCAL/' + resolvedUrl);
> }
> {code}
> but it didn't help.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message