the tid $:/PSaT/yammer/embed.js needs to be type "application/javascript" not json
On Monday, June 18, 2018 at 2:08:33 AM UTC+2, TonyM wrote: > > Bj, et al.. > > I have followed your instructions and built the three tiddlers and reading > through I kind of follow what is happening, however I am only getting a > multi-row blank tiddler. > > If you join yammer https://www.yammer.com/tiddlywiki you could see the > conversion as well, in yammer, and I would love your review of Yammer as > well. > > I have attached the three tiddlers in a JSON file, The $:/PSaT/yammer/embed > tiddler should be displaying the view. > > Further assistance would be appreciated. > > Regards > Tony > > On Saturday, June 16, 2018 at 7:22:13 AM UTC+10, BJ wrote: >> >> you can use a js macro (set module-type to macro, and type to >> application/javascript): >> >> /*jslint node: true, browser: true */ >> /*global $tw: false */ >> "use strict"; >> >> exports.name = "yam"; >> >> exports.params = [{name: "container"},{name: "id"} >> ]; >> /* >> Run the macro >> */ >> >> exports.run = function(container,id) { >> yam.connect.embedFeed({ >> container: "#"+container, >> network: "tiddlywiki", >> feedType: "group", >> feedId: id >> }); >> return ""; >> } >> >> >> and as Jed said put >> >> >> <script type="text/javascript" src=" >> https://s0.assets-yammer.com/assets/platform_embed.js"></script> >> >> >> in a tid tagged with >> $:/tags/RawMarkup >> >> then call it from a tid: >> >> <div id="embedded-feed" style="height:800px;width:100%;"></div> >> <<yam """embedded-feed""" "15224909">> >> >> all the best >> BJ >> >> >> On Friday, June 15, 2018 at 4:36:48 AM UTC+2, TonyM wrote: >>> >>> Hi Folks, >>> >>> I am trying to determine how to make the following work in TiddlyWiki, >>> It allows a user to embed a Yammer conversation into a TiddlyWiki. >>> >>> <div id="embedded-feed" style="height:800px;width:100%;"></div> >>> <script type="text/javascript" src=" >>> https://s0.assets-yammer.com/assets/platform_embed.js"></script> >>> <script type="text/javascript"> >>> yam.connect.embedFeed({ >>> container: "#embedded-feed", >>> network: "tiddlywiki", >>> feedType: "group", >>> feedId: "15224909" >>> }); >>> </script> >>> >>> Of Course in the above, the display occurs with >>> <div id="embedded-feed" style="height:800px;width:100%;"></div> >>> >>> It will make discussing a specific wiki simple. I can past this into Raw >>> HTML on a website, or in a WordPress Post and it works. It uses external >>> script code, So I imagine it would be easy to implement. >>> >>> However imbeding java script is out side my skills in TiddlWiki so far. >>> >>> I have tried placing the contents of >>> https://s0.assets-yammer.com/assets/platform_embed.js >>> then >>> yam.connect.embedFeed({ >>> container: "#embedded-feed", >>> network: "tiddlywiki", >>> feedType: "group", >>> feedId: "15224909" >>> }); >>> >>> in a tiddler of type application, to no effect >>> >>> Thanks in advance >>> Tony >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/6826f0bc-92b6-45de-ab17-e9303164daf0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.