February 19, 200916 yr How can I tell FMP to Load a Local .html file into the webviewer? I could have sworn I saw a tutorial on this somewhere on the web or in a book, but I can't seem to figure this out. Thanks Ben Edited February 19, 200916 yr by Guest
February 19, 200916 yr You can just refence the path in your webviewer. Something like: "file:/C:/Index.html"
February 19, 200916 yr Author Found another post asking this and this is what I used to load a local file: "file://localhost/bilks.html"
February 20, 200916 yr I just used the web viewer few minutes ago. Here's my method "file:///c:/ABC/xyz.html" or in my specific case $filename = get (temppath) & GetAsText(myContainerFieldWithHTMLFile) Export field content[myContainerFieldWithHTMLFile; $filename] $address = "file://" & $filename Set Web Viewer [GotoURL;$address] Edited February 20, 200916 yr by Guest
May 25, 200916 yr This is not working for. I've tried it on FMP 9 Advance and FMP 10 Advance. Working on a Mac (OS X, Leopard, intel MacBook Pro). I have an .html file in my "Sites" folder. In the web view I have tried the following "http://localhost/example.html" "file://localhost/example.html" http://localhost/example.html (no quotation marks) file://localhost/example.html (no quotation marks) "//localhost/example.html" "localhost/example.html" and all of the above, excpet 127.0.0.1 replacing "localhost". Simple doesn't work. Any idea what I'm doing wrong? daniel
May 25, 200916 yr SORRY! Please disregard my last post. I forgot to add my user name to the path. This accesses my local files: "html://localhost/~Daniel/example.html"
Create an account or sign in to comment