This is remarkable. And brilliant.
Thank you.
My mind is a little blown. Slightly confused. And possibly a little zapped.
I have so many questions. But first to play a little.
In a good way I trust.
I remember when the first web app “runner” was unveiled in the mid-90’s; it was a bit mind-blowing to think that you could send a chunk of HTML and/or Javascript to a server and it would execute it. Today, this connotation is a bit more advanced, but the general idea is still the same.
I’m no expert in these architectural matters, but our Coda account instances are likely running in a container, so this is simply an extension of that basic idea; that code can run inside a container and I believe Coda’s Embed() framework is well-enough sandboxed to make this a sustainable concept.
Itsy() is one of those Packs that should be openly available to all Makers to do as they please to enhance and explore new possibilities. The source code is amazingly simple; just another validation that the Codans really understand agile architectures. Knock yourselves out - create something worth reading about.
Great! A lot of possibilities open up with Itsy.
I’m trying to embed this code, but it doesn’t let me:
<div class="tradingview-widget-container"> <div id="technical-analysis-chart-demo"></div><div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div><script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript">new TradingView.widget({"container_id": "technical-analysis-chart-demo", "width": "100%", "height": "100%", "autosize": true, "symbol": "AAPL", "interval": "D", "timezone": "exchange", "theme": "light", "style": "1", "toolbar_bg": "#f1f3f6", "withdateranges": true, "hide_side_toolbar": false, "allow_symbol_change": true, "save_image": false, "studies": [ "ROC@tv-basicstudies", "StochasticRSI@tv-basicstudies", "MASimple@tv-basicstudies"], "show_popup_button": true, "popup_width": "1000", "popup_height": "650", "locale": "in"}); </script></div>
Is it possible for such a widget to be emdedded in Coda using Itsy?
I believe so. This is what it looks like when I use ItsyPlus() to render it.
This is my formula:
itsyPlus('<div class="tradingview-widget-container"> <div id="technical-analysis-chart-demo"></div><div class="tradingview-widget-copyright"><a href="https://in.tradingview.com/symbols/AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL Chart</span></a> by TradingView</div><script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> <script type="text/javascript">new TradingView.widget({"container_id": "technical-analysis-chart-demo", "width": "100%", "height": "100%", "autosize": true, "symbol": "AAPL", "interval": "D", "timezone": "exchange", "theme": "light", "style": "1", "toolbar_bg": "#f1f3f6", "withdateranges": true, "hide_side_toolbar": false, "allow_symbol_change": true, "save_image": false, "studies": [ "ROC@tv-basicstudies", "StochasticRSI@tv-basicstudies", "MASimple@tv-basicstudies"], "show_popup_button": true, "popup_width": "1000", "popup_height": "650", "locale": "in"}); </script></div>')
Templating this little app is also possible, but this requires the use of Itsy() in table cells with Embed() to force the app size within the cell.
Embed(itsy(thisRow.[Chart Template], Minute(Now())), 640, 380, true)