Is it possible to add a third-party widget to my WiseJ.net webpage? Specifically, I’m using Visual Studio VB.Net to integrate a “TradingView” widget into my WiseJ.Net webpage. The integration works in a WinForms app using WebView21, but the widget does not return any data when used on a WiseJ webpage. I’ve tried various approaches without success. Any advice would be greatly appreciated.
Yes, you can integrate any JavaScript widget with Wisej.NET. You will need to use the Widget class in order to do the integration: https://docs.wisej.com/docs/controls/content/widget
I looked up TradingView, and they are JavaScript widgets, so they can certainly be integrated: https://www.tradingview.com/widget-docs/widgets/
When you say “does not return any data”, do you mean that the widget does not show the chart? Or is it showing the chart, but you’re trying to return additional information which is not being returned?
If the widget does not show the chart at all, make sure that you are setting the packages and options of the widget. You can set these in the designer.
For example, for this widget: https://www.tradingview.com/widget-docs/widgets/tickers/ticker-tape/ Based on the code example, you can see that the package source is https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js
You will also need to set the options of the widget, which you can do in the designer. The options are a JSON object. You can read the Wisej documentation on widget options here: https://docs.wisej.com/api/wisej.web/content/widget#options
Additional Resources
There is a blog post that walks you through a widget integration with code examples: https://docs.wisej.com/docs/controls/content/widget
Other useful Wisej documentation:
https://docs.wisej.com/docs/concepts/javascript
You may also find it helpful to check the browser console for errors by pressing F12.
Hope this helps!
-Julie
Please login first to submit.