Jump to content

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


bena

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

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

This topic is 5471 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.