![]() The next thing we want to do is to combine text data with images so that everything will show up together like is does in a regular web page. This means you can construct a dynamic web page on the fly which includes any filemaker field data you want to add. This is very cool for those of you not yet familiar with this concept. This instructs the web viewer to use any text which follows as your html web page. Notice the use of the “data:text/html,” string. The following example, if placed into the calculation area of a web viewer, will display an image stored in a container field. In the examples to follow, I will be using the BaseElements plugin version of the Base64 encode function. However, if you cannot use FileMaker 13-16 yet, there is still hope for you by using the fabulous free BaseElements plugin from Goya. If you are on the cutting edge, you already own a copy of FileMaker 13-16 which has Base64 encode and decode functions built right in. Why should you care about base64 encoding? Well, it allows you to convert an image into plain text which you can then embed directly into your html code and display the result in a Web Viewer! ![]() Not too much to ask right? I also wanted to store these images in a repeating container field along with the text and then reference them directly in the web viewer without having to export them or store them on a shared drive or web server somewhere. I wanted to have images embedded in the help so that they could be displayed within the context of the help. I wanted to create a help system for my clients using FileMaker’s web viewer. I have released a new version of the sample file which demonstrates how to use this technique to embed video files as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |