Location of Chart Image for custom dashboard
Posted: Fri Mar 01, 2013 2:37 pm
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>
<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>