WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. topofthemornin
    Member
    Posted 1 year 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);
    </script>

    http://wordpress.org/extend/plugins/iframe/

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year 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

About this Topic