Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED6951099C for ; Mon, 22 Jul 2013 10:56:49 +0000 (UTC) Received: (qmail 59085 invoked by uid 500); 22 Jul 2013 10:56:49 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 59042 invoked by uid 500); 22 Jul 2013 10:56:48 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 59014 invoked by uid 99); 22 Jul 2013 10:56:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 10:56:48 +0000 Date: Mon, 22 Jul 2013 10:56:47 +0000 (UTC) From: "El farouk mokrani (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4055) error html remote template loading WP8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715104#comment-13715104 ] 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: 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 > > 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