html5 may not be supported in all versions of the filemaker web viewer.
That said, maybe try simplifying your html header info to the most basic form, changing this:
"<html xmlns=\"http://www.w3.org/1999/xhtml\">"& ¶ &
"<html>"& ¶ &
Another suggestion is to create an actual HTML file, and see if that works in a browser, then in a a web viewer. If it does, then copy that HTML into a field in your solution (possibly global), and have the web viewer call:
Having it in a field also makes it endlessly easier to edit if you need to fix anything.
I tried Mike Beargie suggestion and it does not help, the result is the same.
I also tried to load an html file saved locally and tried to load the same file served from a web server. So this is not a problem with data URL. the server is a local one ( python SimpleHTTPServer) so could be a different result if served from a proper one.
I can see the spinning animation, so it links to the library, but does not display the chart.
At the same time all versions I tried load successfully in Safari and Chrome. I am on FM 12 MAC OSX 10.9
I thought if you can display it in Safari it should be able to display in Web Viewer.
I think, for some reason it just take a very long time to render. I will try to leave it to run a bit longer.
Thanks for having a crack at this Nicolai.
Thanks for the responses.
I just tried a simple test. I specified the base url www.tradingview.com . Once on the site in the viewer, clicking the Charts menu for the site produces the same ongoing ticker.
So it appears web viewer cant deal with the fancy interactive charting
Bit of a shame as this charting is responsive, interactive, covers most markets ... oh and did I mention free!
PS. Sorry forgot to mention I am running current versions of Mac os / safari and filemaker .
I have continued to play with this because the widgets are fully responsive so look good. I tried different widgets on tradingview .
For future readers I found the best way to approach is go to:
- Chart Widget Wizard - TradingView
- Customise the desired widget ( they will resize automatically to your viewer size within reason)
- on Mac : right click the widget (after applying customisations) open in new window
- Copy the new window address into web viewer (obviously can replace market codes with calculated fields in your system then)
The following widget does not work in web viewer (MAC / FM13 / IOS .3) (it opens very nicely via open url however and in reality it probably need the screen space on iPad)
The ones that work in viewer
So a good US market visuals site. Not so good for international equities and not so good for data. For data api I use barchart for free commodities and yahoo for most global stocks. With much more fiddling to get the data into my solutions.