12-05-2010 03:15 PM - edited 12-05-2010 03:35 PM
I'd like to include user documentation in .html format (embedded next to my icons and pictures in the .bar file) with my app and use QNXStageWebView to display it. My filename is "docs.html" What do I need to pass into the webView.loadURL(); command to get at my file?
Oh, and how do I dispose of the viewer when the customer is done with it and clicks my "Return" button?
Solved! Go to Solution.
12-06-2010 10:55 AM
i tried using a ton of notations but nothing seems to work. event tried to hard code it in to the .as file and still no go. when you load up the .html into the bar file its copied into the same folder as the application but the QNXStageWebView cant seem to open it up.
here's what i tried, maybe someone else has other options:
web address set to: "app:/index.html" or "app://index.html" or "index.html"
tried using the URL Request object but no go. Even tried using the file object no go.
12-06-2010 11:27 AM
@jtegen: yeah i checked via the exist function and it exists when you check via the .as file. anything you put under the src directory is automatically packaged into the .bar file. at least it is under flash builder.
@harry: figured it out! ok so my final assumption is that when you load the QNXStageWebView up it looks for for files in an absolute path manner. meaning you cant just use "file.html" you hafta use the absolute path. so heres the code that should let you view your HTML file:
th + "/docs.html");
and as for disposing try using this:
12-06-2010 01:45 PM
If you watch the Rogers tablife video, there seems to be 2 different browsers on the Playbook --- one is made by QNX and the second browser is made by the Torch Mobile team. The Torch browser is the full feature browser and the QNX browser is the light weight embedded browser.
02-25-2011 09:18 AM
I had a similar issue. The solution provided by JRab didnt worked for me. What did worked is:
Hope this helps.
02-25-2011 09:37 AM
04-01-2011 12:09 AM
It seems like no two people have been able to get this to work the same way, if at all. Which sucks because the last thing my app needed was to get this working to display a help file. I don't know, maybe the viewer got broken in the 9.4 simulator/library. Oh well, no free tablet for me. At least I got signed up as a vendor for free.