cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "El farouk mokrani (JIRA)" <>
Subject [jira] [Commented] (CB-4055) error html remote template loading WP8
Date Mon, 22 Jul 2013 10:56:47 GMT


El farouk mokrani commented on CB-4055:

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

View raw message