You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "El farouk mokrani (JIRA)" <ji...@apache.org> on 2013/07/22 12:58:49 UTC

[jira] [Comment Edited] (CB-4055) error html remote template loading WP8

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

El farouk mokrani edited comment on CB-4055 at 7/22/13 10:57 AM:
-----------------------------------------------------------------

the solution in cordova 2.9 is to replace 
 "File", "readResourceAsText",  [alias._url, "", 0, 0] in cordova.js and add the relative link as
 pathToResource = "www/" + pathToResource; in File.cs this problem is removed from 3.0 and replaced by XHRhelper.cs but the same problem in remote ajax call .
                
      was (Author: farouk):
    the solution in cordova 2.9 is to replace 
 "File", "readResourceAsText",  [alias._url, "", 0, 0] in cordova.js and add the relative link as
 pathToResource = "www/" + pathToResource; this problem is removed from 3.0 and replaced by XHRhelper.cs but the same problem in remote ajax call .
                  
> error html remote template loading WP8
> --------------------------------------
>
>                 Key: CB-4055
>                 URL: https://issues.apache.org/jira/browse/CB-4055
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 2.8.0
>         Environment: Windows 8
>            Reporter: El farouk mokrani
>            Assignee: Jesse MacFadyen
>              Labels: backbonejs, javascript, requirejs
>             Fix For: 3.0.0
>
>
> Hello Everyone,I've been trying to develop an app in cordova 2.8 in Windows phone 8. Everything works fine in iOS and Android, but I'm getting a really strange error message.
> ERROR: failed to InvokeMethodNamed :: readResourceAsText on Object :: File
> CommandString : DebugConsole/log/DebugConsole1223202439/"Error in error callback: File1223202438 = Error: js/../templates/home/home.html HTTP status: 404"
> Log:["Error in error callback: File1223202438 = Error: js\/..\/templates\/home\/home.html HTTP status: 404","DebugConsole1223202439"]
> The thread 0xea8 has exited with code 259 (0x103).
> so i'm used BackboneJs + Jquerymob + require and textjs plugin the problem is found at int start = int.Parse(optStrings[2]); in file plugin of phonegap File.cs and the content of pathToResource ="js/../templates/home/home.html" loading template  that's why I think that this is the problem. 
> Do you guys know anything about it? i'm sorry for my english 
> thanks.

--
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