Capture Web Content As Markdown

Learning JavaScript, while also learning FileMaker development, can seem like a daunting task. The trick is to take things little-by-little and pick up those essential skills which allow you to add in the really cool functionality.

You don't have to code your own JavaScript library. You just need to be willing to integrate them with that little bit of know-how you acquired. The great thing about this process is building the skills to be able to implement things in a quick fashion. In this video, I show you how to "hijack" a web page within the FileMaker Web Viewer object. We do this by injecting jQuery and then using another JavaScript library to convert the HTML we capture into a popular plain text format called Markdown.

By doing this, we essentially create a tool which allows us to easily and quickly pull content from the web. The bigger benefit, however, is knowing how to integrate JavaScript libraries onto the Web Viewer and being able to use our own JavaScript code to make a web page or integrated feature do the things we want it to do.

AttachmentSize
CaptureWebContentAsMarkdown.zip1.69 MB

Comments

Here is Code 5 from FileMaker .... Command is invalid (for example, a Set Field script step does not have a calculation specified) Chris any thoughts on why I get this error when loading. Need an error link. Go and try https://www.yahoo.com Thanks for your thoughts.

Hi Matt,,

I wonder if you can help me with how can focus open Microsoft teams on web viewer plus avoid pop-ups MT.

"msteams:/l/call/0/0?users=saeed@company.ae&withVideo=true"

...I go to layout mode first, return to browse and then run the "Activate Capture" script again. Is there something I missed or is there a way to automatically jump in and out layout mode pre running the script?

Thanks