[resolved] Can I Iframe javascript? (2 posts)

  1. topofthemornin
    Posted 3 years ago #

    This javascript creates an intereactive stock chart widget. Can I use Iframe to embed it and if so, how? I haven't had any luck so far, just a blank page.

    <script type="text/javascript" src="https://s3.amazonaws.com/tradingview/tv.js"></script>
    <script type="text/javascript">
    var tradingview_widget_options = {};
    tradingview_widget_options.width  = 986;
    tradingview_widget_options.height = 500;
    tradingview_widget_options.symbol = '$SPX';
    tradingview_widget_options.interval = 'W';
    tradingview_widget_options.toolbar_bg = '#E4E8EB';
    tradingview_widget_options.allow_symbol_change = true;
    new TradingView.widget(tradingview_widget_options);


  2. webvitaly
    Plugin Author

    Posted 3 years ago #

    IMHO it is not possible to embed javascript.
    Try to add this javascript into some empty page or html file and you may try to embed that page (or file).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • iframe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic