Jump to content
Sign in to follow this  
jonr

open URL with local html file

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

The send event works perfectly. Thanks.

I wonder why it "broke" in FM9?

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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