How do I embed JavaScript? I keep trying to, but it’s not working.
Here’s the code I’m trying to embed:
<script type="text/javascript" src="http://feed.informer.com/widgets/KOREMBJVLD.js"></script>
How do I embed JavaScript? I keep trying to, but it’s not working.
Here’s the code I’m trying to embed:
<script type="text/javascript" src="http://feed.informer.com/widgets/KOREMBJVLD.js"></script>
Put it in a tiddler with the tag $:/tags/RawMarkup.
Tried it, it didn’t work. Is there another way?
Have you looked in the source code for your wiki (F12) to see if it’s there?
I added the tailwindcss framework this way and I can see in the source code around line 52 the code I put on the page with the raw markup tag: <script src="https://cdn.tailwindcss.com"></script>
Gloria,
Unlike a single html website page you can’t simply include JavaScript in your wiki for a number of reasons,
Javascript can be integrated into tiddlywiki but needs to obey the rules the TiddlyWiki sets, primarily installed as a module, saved and reloaded. This is usaualy done via a plugin. This proves the site owner intended it, and its not a drive by hacker.
Once it is installed, to make use of it, it needs to be referenced or invoked elsewhere in the wiki otherwise it will be invisible. Since this is often done via a function call, which is after all JavaScript, this invocation also needs to be performed and this is normaly done via a macro or widget definition, again according to tiddlywiki standards.
I think you would get further if you explain what you are trying to do and the components to be installed, even what they do, because there may already be an implementation you can use.
Like any fully featured Application or website environment there are platform intergration methods and standards you need to follow.
Great writeup.
While fishing in the vast seas of TiddlyWiki knowledge, I also caught this for my bookmarks enable-js — using inline script tags
Hi,
I’m just trying to embed ah RSS feed widget. I also tried making a separate HTML page & embedding it with IFRAME, but that doesn’t work either.
Here’s what it looks like with the IFRAME:
Here’s the URL:
https://glor.tiddlyhost.com/#My%20TiddlyWiki%20Templates
If you look at the instructions for embeding the RSS feed widget, we can break it down into the parts. Embeding the Javascript, invoking the display of the rss feed.
I do think implementing it with the raw tag is the first step.
There are a few users in the community who make substantial use of RSS, they may be able to help you. The thing is RSS is a global standard so someone most likely has already done it for tiddlywiki.
Your web pages is accessed via https
- and your iframe is using http
- you should use https
Thank you, that worked.