[ 
https://issues.apache.org/jira/browse/CB-3761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697933#comment-13697933
 ] 

Lee Crossley edited comment on CB-3761 at 7/2/13 4:21 PM:
----------------------------------------------------------

By stealing the native XHRProxy.cs code and updating ajax requests to 
$.ajax({
url: "x-wmapp0:www/page.html"
}) or similar, everything works and CB-3761 will no longer be an issue.
                
      was (Author: leecrossley):
    By stealing the native XHRProxy.cs code and updating ajax requests to 
$.ajax({ url: "XHRLOCAL/x-wmapp0:www/page.html" }) or similar, everything works 
and CB-3761 will no longer be an issue.
                  
> XHR Crash using Cordova
> -----------------------
>
>                 Key: CB-3761
>                 URL: https://issues.apache.org/jira/browse/CB-3761
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 2.8.0
>         Environment: Windows 8, Visual Studio 11, WP Simulator and Device
>            Reporter: Dillon Lucente
>            Assignee: Jesse MacFadyen
>
> Out of bounds crash when trying to use Cordova.js overridden XHR.
> Affected files: FileUtil.cs (readResourceAsText() line 707) and Cordova.js 
> (line 6258)
> Changes in the C# implementation haven't made their way back to the js 
> implementation. readResourceAsText() expects an array of 5 elements, but the 
> js is only supplying two arguments.
> Possible fixes:
> Change line 6258 of Cordova.js from:
> "File", "readResourceAsText", [alias._url]
> to:
> "File", "readResourceAsText", [alias._url, "", 0, 0]
> Or change readResourceAsText() to not try to assign variables it doesn't use.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to