Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How can I tell FMP to Load a Local .html file into the webviewer?

Featured Replies

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 by Guest

You can just refence the path in your webviewer.

Something like:

"file:/C:/Index.html"

  • Author

Found another post asking this and this is what I used to load a local file:

"file://localhost/bilks.html"

I just used the web viewer few minutes ago. Here's my method :D

"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 by Guest

  • 3 months later...

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

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.