Asked by:

Control to load HTML content in Javascript Store apps

Question

I am working on Windows Store apps using JavaScript/HTML. Basically it is a Reader app which loads local HTML files contains Multimedia(Video, Images etc,) I am going
with DOM parser to load HTML content like

var parser = new DOMParser();

Before that I am wondering that which Control is preferable to load HTML content with DOM parser. I am not recommended with Webview
control(Bcz of limitations of Webview I went for Javascript development). Usually we will get a String of local HTML file and renders with webview(NavigateToString).

Thanks you for Considering the post. I want to clarify that I want to load Epub file(collection of HTML). So it is purely local Content,
Apart from this I started the same app with C#/XAML using the Control Webview. But I am unable to avoid limitations like disable Pinch Zoom in webview & recognizing gestures. One of MSFT people suggested to us use HTML/JS development using Dom parser.
Still I dont want to use webview control in JavaScript

So, I am trying to use Dom parser to parse the HTML content from local Storage folder. Now I am asking you to about IFrame control will support multimedia(Video, audio files) to render with HTML.
Suggest me relevant source to use Dom parser in windows Store app to achieve this

Have you tried using Blend for HTML to design your app? The WinJS controls are available through the asset pane and are easy to configure. Let me know if this solves your issue. If not, we will correspond further.

Sorry
for the late reply to your post. As I mentioned in question my local HTML files contain multimedia(Images,Video & Audio files & Hyper links).
Now I am looking into WinJS.UI.HTMLControl in JavaScript & I am new to JavaScript. Once I reach the desired result or any issues then I will try to mention you.

The WinJS.UI.JTML Control looks like "Enables you to include an HTML page dynamically."
Can you clarify about this.

& I have a question here. For my scenario(loading local HTML files using JavaScript) which Control is suitable. Please give me your Suggestion.
Thanks,

The HTMLControl element basically lets you add an external HTML page to your app by setting the uri value on the control's data-win-options. For your scenario, I would suggest trying out the HTML control element and see if it works. If not, we can
look into other options.

Using blend I tried the HTMLCONTROL. The HTML page is loaded but it is not a right one I guess

Right now I don't have much code to share with you. Here is the
Code .
You can See how the output looks in simulator. I am unable to scroll the page to view full HTML. I am not getting help about this.

I am unable to load Local HTML content in IFrame. I am trying to Load pure Local HTML content in IFrame from appFolder. which are working Fine when loading from VS soluton explorer. I am just fallowing your Answer;