November 28, 201114 yr 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 :-)
November 28, 201114 yr 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 ? You should calculate the absolute path to the file, using Get (FileName) as your starting point - see something similar here: http://fmforums.com/...post__p__370547
July 8, 20169 yr 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 July 8, 20169 yr by Dimitrios Fkiaras
Create an account or sign in to comment