Page 1 of 1

Location of Chart Image for custom dashboard

Posted: Fri Mar 01, 2013 2:37 pm
by 15662315
I am attempting to build a custom dashboard in ASP.Net. I would like to use the images from the charts that are already displayed on the web as graphics on the dashboard. I am attempting to use JQUERY to pull the image from the div on the current web pages (as to avoid having to maintain two pages). I am only getting an X where the image should be. I know this is due to the path being incorrect for the current page. I can replace the path with a jquery string, but I am just not sure what the path should be to retrieve the image. The JQUERY is listed below. the second routine, is attempting to replace the path of the image with an absolute path. When I look at the path that I am returning in the page inspector, I get this.

<img name="WebChart9img" id="WebChart9img" src="GetChart.aspx?Chart=WebChart910493223634977236498828311png" border="0" GALLERYIMG="no"/>

is there an absolute path that I can replace the src="GetChart.aspx?Chart=WebChart910493223634977236498828311png" with to access the image generated by the web page?


<script type="text/javascript" >

$(document).ready(function() {
$("#Button1").click(function() {
alert("Hello world!");
});
$('#div2').load('http://10.49.32.29/rnsmetricsfw40/icshitmiss.aspx #WebChart9img');


$("img").each(function () {
$(this).attr({
src: 'http://10.49.32.29/rnsmetricsfw40/' + $(this).attr('src')
});
});

});



</script>

Re: Location of Chart Image for custom dashboard

Posted: Mon Mar 04, 2013 3:54 pm
by 10050769
Hello phil1995,

You can use the GetChartFile property to set the full path of where you wish the GetChart routine to reside. It could be the same as the default location
but if you set the property you can then repeat that full http path with your own code. For non-file temporary TempChart formats please note that
there is a cache timeout of the chart of 40 seconds.If the TempChart property is set to 'file' then the temporary chart will reside on disk, eg. WebChart910493223634977236498828311png plus extension .png, ie. WebChart910493223634977236498828311png.png, and might be quicker to extract by putting in the path directly to the temporary URL location.


Thanks,