Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to Qlikview and trying make some extension which can be used on IE8.
I am using R2D3.js for making D3.js compatible with IE8.
But very simple code coluring text is not working,So, can someone please help me out of this.
My html code is here, which is working fine on Browser :
<!DOCTYPE html>
<meta charset="utf-8">
<!--[if lte IE 8]><script src="../r2d3.js"></script><![endif]-->
<!--[if gte IE 9]><!-->
<script src="../lib/d3/d3.js"></script>
<script>alert("FSDF");</script>
<!--<![endif]-->
<p>
hello
</p>
<script>
d3.select("p").style("color", "red");
</script>
</html>
My extension script code which is not working:
Qva.LoadScript('https://getfirebug.com/firebug-lite-beta.js#startOpened=true', function () {
Qva.LoadScript("/QvAjaxZfc/QvsViewClient.aspx?public=only&name=Extensions/r2d3-master/r2d3.js", function() {
Qva.AddExtension('QlikView/D3R2Piechart', function() {
var _this = this;
_this.Element.innerHTML ='<!DOCTYPE html>' + '<meta charset="utf-8' +'">'+'<p>hello</p>' ;
d3.selectAll("p").style("color", "red");
d3.select("body").style("background-color", "black");
},true);
} );
});
Make sure you are using the Ajax client [aka Full Browser] and not the IE Plugin, as extensions only work in Ajax mode and not with the IE Plugin.
By default, an extension can´t load any file from "outside" the extension folder.
If your extension resides into QlikView/D3R2Piechart then "r2d3-master/r2d3.js" should reside at same folder
@Clever Anjos,
Thanks for reply first.I tried this also but that is alsonot working.
@Bill Markham How to change or check waht I am using as I havent change with repsect to it.So.Must be using the default one.
Palash
When you open the qvw in AccessPoint and it send you to a url does this contain a string like :
QvAJAXZfc/
I.e. contains AJAX.
If it contains AJAX you are using AJAX client. If not then you are not.