Hugh,

If I remember correctly, simply displaying the blob of an html file will work. It does in Firetext (https://github.com/Codexa/Firetext).

- Josh


On 2/11/14, 10:22 AM, Hugh Tay wrote:
Oh hey Dave,


Great to hear your thoughts on this. =)


On Tuesday, February 11, 2014 2:44:10 AM UTC+8, Dave Hylands wrote:
As long as this gets implemented by using DeviceStorage to read the HTML file 
from the sdcard you'll be fine.


Question - will the JS & CSS also be processed correctly if we also load the 
corresponding source files the same way?


E.g. ~

var jsfile = sdcard.get("index.js");
var script = "";

jsfile.onsuccess = function(e)
{
     var reader = new FileReader();
     script = reader.readAsText(e.target.result);
     $("body").append("<script>" + script + "</script>");
}


Thanks and cheers,


Hugh

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g


_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to