If you are unable to create a new account, please email support@bspsoftware.com

 

HTML Item that works in Report Studio does not work in Active Reports

Started by tm1ist, 07 Oct 2015 02:39:12 AM

Previous topic - Next topic

tm1ist

Hi all,

As I mentioned in an earlier thread, I am trying to show current exchange rates in an Active Report: http://www.cognoise.com/index.php/topic,29197.0.html

If I cannot find a way to get the exchange rates as numbers that I can format, my second choice is embedding some external widgets. To achieve that, I put an iframe or html code (examples below) in an HTML Item. These HTML Items work well in Report Studio but throws errors in Active Reports.

For instance, the sample codes below work well in Report Studio but results in error in Active Reports. You only need to copy and paste them into an HTML Item to test in your own environment. (Note that the code samples are from investing.com and exchangerates.org.uk, so they are safe)

Do you have any idea why it works in Report Studio but not in Active Report? What would you suggest me to try?


Code1(iframe):

<iframe frameborder="0" scrolling="no" height="215" width="453" allowtransparency="true" marginwidth="0" marginheight="0" src="http://fxrates.investing.com/index.php?force_lang=1&pairs_ids=1;3;2;4;7;5;8;6;&header-text-color=%23FFFFFF&curr-name-color=%230059b0&inner-text-color=%23000000&green-text-color=%232A8215&green-background=%23B7F4C2&red-text-color=%23DC0001&red-background=%23FFE2E2&inner-border-color=%23CBCBCB&border-color=%23cbcbcb&bg1=%23F6F6F6&bg2=%23ffffff&bid=show&ask=show&last=hide&change=hide&last_update=hide"></iframe>
<div style="width:453"><span style="float:left"><span style="font-size: 11px;color: #333333;text-decoration: none;">The Forex Quotes are powered by <a href="http://www.investing.com/" rel="nofollow" target="_blank" style="font-size: 11px;color: #06529D; font-weight: bold;" class="underline_link">Investing.com</a>.</span></span></div>


Code2:

<!-- Simple Currency Rates Table START -->
<link rel="stylesheet" type="text/css" href="http://www.exchangerates.org.uk/widget/ER-SCRT2-css.php?w=180&nb=10&bdrc=e0e0e0&mbg=ffffff&fc=333333&tc=333333" media="screen" />
<div id="erscrt2"><div id="erscrt2-widget"></div><div id="erscrt2-infolink"><a href="http://www.exchangerates.org.uk/British-Pound-GBP-currency-table.html" target="_new" ><img src='http://www.exchangerates.org.uk/widget/logo-333333.png'; alt='ExchangeRates.org.uk'></a></div>
<script type="text/javascript">
var tz = 'userset';
var w = '180';
var mc = 'GBP';
var nb = '10';
var c1 = 'USD';
var c2 = 'EUR';
var c3 = 'AUD';
var c4 = 'JPY';
var c5 = 'INR';
var c6 = 'CAD';
var c7 = 'ZAR';
var c8 = 'NZD';
var c9 = 'SGD';
var c10 = 'CNY';
var t = 'Live Exchange Rates';
var tc = '333333';
var bdrc = 'e0e0e0';
var mbg = 'ffffff';
var fc = '333333';

var ccHost = (("https:" == document.location.protocol) ? "https://www." : "http://www.");
document.write(unescape("%3Cscript src='" + ccHost + "exchangerates.org.uk/widget/ER-SCRT2-1.php' type='text/javascript'%3E%3C/script%3E"));
</script>
</div>
<!-- Simple Currency Rates Table END -->