That’s OK, you can use either relative or absolute path to get your resources 
via XHR in XWalkView.

From: Leonardo Tegon [mailto:[email protected]]
Sent: Tuesday, July 15, 2014 9:40 AM
To: Wang, Xingnan
Cc: [email protected]
Subject: Re: [Crosswalk-help] XHR Requests

I'm using

mXWalkView.load("file://" + folderPath, null);

On Mon, Jul 14, 2014 at 10:30 PM, Wang, Xingnan 
<[email protected]<mailto:[email protected]>> wrote:
How do you load the index.html from sdcard to XWalkView in your app?

From: Crosswalk-help 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Leonardo Tegon
Sent: Tuesday, July 15, 2014 5:16 AM
To: 
[email protected]<mailto:[email protected]>
Subject: [Crosswalk-help] XHR Requests

Hi,

i have this file tree in phone sdcard:

[Inline image 1]

can i make ajax requests from index.html to local files (images, sounds in same 
directory) in XWalkView?

Thanks.

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to