Jump to content

Displaying raw html


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

Recommended Posts

I think you are looking to use a data URL to display html. Basically, you can use the following to display it in a web viewer:

"data:text/html," & $your.html.here

Does that help?

Link to comment
Share on other sites

Hey Mike do you think this same technique could be used to display just the photograph from some one's linked in page? Trying to automate a little humanity into my contacts table, and we already have everyone's linked in url captured in the database.

Link to comment
Share on other sites

Sure, you can have the HTML for displaying an image, and if your image is in a container field, you can use the base64 functions to also display that inline.

I have some examples of how you might do this in a blog post with sample file to download here:


Hope this helps.


Link to comment
Share on other sites

The picture on that page can be displayed by setting your web viewer to the following address:

I don't know what - if any - logic would allow you to calculate the image's location from the URL of a person's profile. You might be able to run a script to extract the image location from a given profile - but you would be at the mercy of the LinkedIn webmasters, who can change their schema at any time.

Whatever you do, make sure to read the site's terms of use.

Link to comment
Share on other sites

Right, ideally I am not extracting an image, but instead displaying that image from the contacts linked in profile page using a web viewer. The key is the logic display this for all contacts, given that we have a link to their linked in page already in our database.

Link to comment
Share on other sites

9 minutes ago, ddinisco said:

The key is the logic display this for all contacts,

As I said, I don't see any such logic. My guess is that they store the image on their media server under a randomly assigned name, and link that random name to the member's record in their database.


9 minutes ago, ddinisco said:

I am not extracting an image, but instead displaying that image from the contacts linked in profile page

Some web sites have rules against that.


Edited by comment
Link to comment
Share on other sites

This topic is 1841 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

  • Similar Content

    • By ESpringer
      Dear FMForums folk,
      I'm a long-time personal user, building and working out of my own solutions. (I used to post here often, but for years now have been happily using rather than designing...)
      One of my databases uses FM web viewers as a front-end for my university's moodle (cms platform), tunneling in based on various URLs for students, assignments, etc. 
      In the past, a cms like moodle (and before it we had BlackBoard) would need me to authenticate once, and then all subsequent url queries within a session were served up properly, just as if I were using an ordinary browser.
      With more recent versions of moodle, suddenly authentication fails to survive any transitions at all (from one tab to another, from one record to another, toggling into layout mode and back). It's as if the browser session resets with every step of my workflow. 
      I've just upgraded to FM19 and delayed posting to see if that would help, but I'm still getting the constant authentication roadblocks. 
      What's preventing FileMaker from retaining authentication via PHP in the way that browsers do?
      (I'm running on Mac OS 10.14/Mojave, so it's emulating safari, yes? But Safari itself is having no trouble.)
      Many thanks for any ideas!
    • By jaboda
      This is a peculiar bug which seems to have appeared with a recent Chrome update.
      Create a Web Viewer control with the following content:
      "data:text/html,<html><body bgcolor=\"#EEEEEE\">HELLO</body></html>" Then view the layout in WebDirect in Chrome. You'll notice it doesn't display anything. Remove the bgcolor and it works as expected. It also works in FileMaker.
      There are numerous workarounds but I can't find out how to fix it.
      Anyone else experienced this?
    • By jaboda
      This is a bit of a bizarre one which ate 90 minutes of my morning - so I thought I'd share it in case anyone else encounters it.
      One of our FileMaker use cases has an embedded web viewer displaying a Google Sheet (it's a runtime Kiosk app but the same issue applies to FMPro). This worked well and the users could update the spreadsheet (a rota).
      However this morning I noticed a strange bluey/grey overlay (see attachment). After quite a bit of digging it seems Adobe Flash is still installed in IE 11 and this was causing some form of issue.
      I disabled Flash in Group Policy (gpedit.msc) and the problem went away. There are other ways of disabling it which should also work.
      This was on Windows 10. I have now tested it on two machines so it should be fairly easily reproducible.
      I assume it's somehow caused by the 2nd October update to the Flash control.
      Anyway hope this helps if others have the same issue.

    • By Oyseka
      Hi All,
      I am viewing a records location through What3Words and the web viewer performs as expected on OS X 10.10.x and 10.11.x but when I put the file on OS X High Sierra the web viewer gives the error, "SSL Error, Unable to create a secure connection to the server". All connections are from the same location. Can anyone assist please
    • By TJ53
      I´m not sure why but the WV shows the correct result in some computers and devices, but in other just shows an empty page (please see attached file with WV including code).
      This is the result after testings:
      - It doesn't work on my Mac (10.11.06)
      - It works on my iPhone
      - It works on my iPad
      - I works on one of my colleague´s Mac (10.12 I believe)
      - It doesn't work on another collegue's Windows
      I have attached the file with the wv, is this working for you? any clue why this is happening? any help would be very much appreciated!!
  • Create New...

Important Information

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