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

open URL with local html file

Featured Replies

Up until quite recently, the following worked fine in 8.5v2:

Open URL [ "file://c:/CameoDevelop/CameoHelp/Appendix17.html" ] [ No dialog ]

Now, that does nothing, but omitting "file://" works:

Open URL [ "c:/CameoDevelop/CameoHelp/Appendix17.html" ] [ No dialog ]

(It makes no difference whether forward or backslashes are used.)

The change in behavior may have happened around the time that I installed the fmp 9 trial. (I've removed the trial, however).

Any clues in solving this mystery would be appreciated.

  • 3 weeks later...

Using FMP 9, Open URL is working fine on Mac, but I just tried on a PC and it didn't work.

Is something happening on this particular PC, or do I have to script the path differently now? My path is already like the second one, without the "file://" -- any insight?

  • 1 month later...

I'm having the exact same issue... local html files don't load as they are supposed to. All was well in 8.x, but has broken in 9.

If I click the button that the script is assigned to multiple times, it eventually loads the page, but this isn't a great solution.

I haven't seen an answer to this elsewhere on the forums... has anyone figured it out?

When you guys say "doesn't work" what exactly do you mean? Do you mean the web browser in question loads up and show's a "page cannot be found" message?

Nope... literally nothing happens.

For example, I have a script that only has a goto url statement in it. I run the script (by clicking the button it is assigned to) and nothing happens at all. It's like the script didn't run.

If I put custom dialog boxes statements on either side of the goto url statement, they both pop up, but nothing loads in the browser.

If I click the button repeatedly (maybe 10-20 times) it will load once or twice.

This worked well in FM8.

Okay 1 - try the fllowing command instead within a send event statement: iexplore "yourURLHere"

2) Try Opening the browser first, then going back to fm and pressing the button to open the url - in all honesty i think this is an issue with the browser boot time - have you upgraded the browser recently?

Thanks for the suggestions.

I am actually using Firefox, and it is up and running while FM is up.

To use Send Event, would I send it using text, or a calculation?

Also, if I open the DB in FM8, it works perfectly every time.

Calculation, if you're using firefox, you might want to try: firefox "urlhere"

if you want to run it as a calculation:

"iexplore " & Quote(YourURLFieldHere)

The send event works perfectly. Thanks.

I wonder why it "broke" in FM9?

Anyways, a workaround is good enough for me! Thanks again.

I don't know but 2 things.

1) I don't think send event is available on Mac so you're probably going to have to do a platform check and execute a open url if you're on mac and send event if one windows.

2) I would recommend you use iexplore, not firefox as IE should be present on all windows machines.

It's actually just a database for me to use on my local machine... I'm not sharing it. But I will keep your suggestions in mind for other DBs.

Actually, I hope that it gets fixed in a later version.

Thanks again for your help!

No Worries.

Yeh, FM 9 is still a bit buggy for my liking, hopefully there will be an update soon to resolve a few issues.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.