Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


This topic is 5673 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

You can just refence the path in your webviewer.

Something like:

"file:/C:/Index.html"

Posted (edited)

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...
Posted

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

Posted

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"

This topic is 5673 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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