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>
Location of Chart Image for custom dashboard
Re: Location of Chart Image for custom dashboard
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |