Jump to content

How do I show a local html page with web viewer using a relative path ?


gaz

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

Recommended Posts

I've created a FM developer project that outputs an XML file that gets used by a Flash Project.

The flash project is published as 'ataf.swf' file which is embedded in a local html web page named 'ataf.html'

ataf.swf and ataf.html are in the same directory as the Filemaker project.

Everything works fine, however I want this local web page to appear on a layout in the Filemaker project itself (using a web viewer portal), so the user can test if the xml export was a success directly from Filemaker (without opening up a browser).

Within web viewer I've tried the URL 'file:///ataf.htm', but it just shows 'file doesn't exist'.

I think it's looking in a different place and not in the directory that the filemaker project is running from.

The final project will be made into a Filemaker Pro Advanced project for Mac and PC, so I can't use a full file path (because they would be different on each machine), unless perhaps I need to write a script that will determine the directory the FM project is in and then add 'ataf.html' to the end of that ?

Any help would be very much appreciated.

Thanks in advance :-)

Link to comment
Share on other sites

  • 4 years later...

Sorry for continuing this thread. I haven't got any success in showing a local .html file thru WebViewer

I entered the absolute path, as that was calculated by the example file in post #2 (for a MAC computer)

The webviewer seems to find the file but give me a message that a suitable application was not found to open the file

What is wrong?

 

** UPDATE **

Solved : I had a problem with slashes "/"

"file://Macintosh HD/Users/JohnDoe/Desktop/Folder/File.html"

correct format

Edited by Dimitrios Fkiaras
Link to comment
Share on other sites

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