I have a web application that generates a file set locally for each session. That file set consists of an html file, two javascript files and a CSS file. I am trying to load that content into a page in my web application using a WebHTMLViewer.
Here my code, based on research I did on the forum over the last week. This code is in my webpage.open:
[code]RubberViewsWE1.Init(Self, 800, 600)
dim f as new folderitem
//set the path to the map based on OS platform
if TargetMacOS then
f = GetFolderItem( “file:///Users/xxx/Desktop/RDProjects/TeardownDev/output/index.html”,FolderItem.PathTypeURL)
elseif TargetARM then
f = GetFolderItem(“file:///home/xxx/Teardown/output/index.html”,FolderItem.PathTypeURL)
end if
if f.exists then
file = Webfile.Open(f)
file.MIMEType = “text/html”
HTMBrowse.URL = file.URL
end[/code]
However, I can only show the single html file and it never retrieves any of the associated files (js or css). Can anyone post examples of how to serve complex local content like this within an app, please? Thanks for any help!