ddinisco Posted July 18, 2016 Posted July 18, 2016 Can the web viewer be used to display raw html like attached? I put this text into a field and have the web viewer reference that field, however it does not display anything. If I add text like http://www.cnn.com it works just fine. html_sample.rtf
Mike Duncan Posted July 18, 2016 Posted July 18, 2016 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?
ddinisco Posted July 18, 2016 Author Posted July 18, 2016 Brilliant Mike! That is exactly what I was looking for. Thanks so much.
ddinisco Posted July 19, 2016 Author Posted July 19, 2016 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.
Mike Duncan Posted July 19, 2016 Posted July 19, 2016 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: http://www.soliantconsulting.com/blog/2014/06/filemaker-13-working-base-64 Hope this helps. Mike
ddinisco Posted July 19, 2016 Author Posted July 19, 2016 Thanks Mike. Unfortunately this is a bit beyond what I understand about web viewers and html. Would it be possible (or easy) for you to show me an example of how this would work using this profile? https://www.linkedin.com/in/jack-sheehan-85412465
comment Posted July 19, 2016 Posted July 19, 2016 The picture on that page can be displayed by setting your web viewer to the following address:https://media.licdn.com/mpr/mpr/shrinknp_200_200/p/2/005/057/3c2/3b7764b.jpg 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.
ddinisco Posted July 19, 2016 Author Posted July 19, 2016 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.
comment Posted July 19, 2016 Posted July 19, 2016 (edited) 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 July 19, 2016 by comment
Recommended Posts
This topic is 3316 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 accountSign in
Already have an account? Sign in here.
Sign In Now