AnsweredAssumed Answered

Web viewer html 5 address. What's wrong?

Question asked by HammerOz on Apr 15, 2015
Latest reply on Apr 15, 2015 by HammerOz

HI guys,

 

I thought I would have a crack at this.  I don't have a html background . The webviewer is showing the status wheel which makes me think I am close... or not.

 

 

The site  Chart Widget Wizard - TradingView

say embed this:

 

<!-- TradingView Widget BEGIN -->

<script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script>

<script type="text/javascript">

new TradingView.widget({

  "width": 998,

  "height": 610,

  "symbol": "FX:SPX500",

  "interval": "D",

  "timezone": "exchange",

  "theme": "White",

  "style": "3",

  "toolbar_bg": "#f1f3f6",

  "allow_symbol_change": true,

  "hideideas": true

});

</script>

<!-- TradingView Widget END -->

 

 

My custom viewer address attempt:

 

"data:text/html;charset=utf-8," &

"<html xmlns=\"http://www.w3.org/1999/xhtml\">"& ¶ &

"<head>" & ¶ &

 

 

"<script type=\"text/javascript\" src=\"https://d33t3vvu2t2yu5.cloudfront.net/tv.js\"></script>"& ¶ &

 

 

"</head>" & ¶ & "<body>" & ¶ &

 

"<script type=\"text/javascript\">" & ¶ &

 

 

"new TradingView.widget({"& ¶ &

  "\"width\": 998,"& ¶ &

  "\"height\": 610,"& ¶ &

  "\"symbol\": \"FX:SPX500\","& ¶ &

  "\"interval\": \"D\","& ¶ &

  "\"timezone\": \"exchange\","& ¶ &

  "\"theme\": \"White\","& ¶ &

  "\"style\": \"3\","& ¶ &

  "\"toolbar_bg\": \"#f1f3f6\"," & ¶ &

  "\"allow_symbol_change\": true,"& ¶ &

  "\"hideideas\": true"& ¶ &

"});" & ¶ &

 

"</script>" & ¶ &

 

"</body></html>"

 

 

 

Thanks in advance

Outcomes