Re: Displaying a Link on A Web PAge with image/png header.
- From: mwhipple@xxxxxxxxxxxxxx (Matthew Whipple)
- Date: Wed, 26 Sep 2007 10:34:35 -0400
You probably wouldn't want to add the link to an image/png since that
probably shouldn't work as it's not something png's should be doing.
You'll want to output an html page and embed the image directly within
the page source if you can't output a temporary file. Look into the
"data:" URI type which should allow you to encode the image data and
serve it as standard HTML.
jeevs wrote:
Hi Forum!!!.
I want to plot a graph on a web page. I am using the GD::Graph
module and can successfully plot the graph. The graph is displayed on
the web page with the following code.
...
...
print "content-type: image/$graph_format\n\n";
my $img_obj = $graph->plot(\@data)->$graph_format();
binmode STDOUT;
print $img_obj;
...
...
But now i need to give a link to the user to move to other page on the
same page where the graph is displayed. This is tedious for me since I
am not supposed to write to the server. Otherwise i could have written
a image file and instead of using image headers, I wud have used the
text/html header and the img tag to display the graph.
Please guide me how can I provide the link to the another page.
- References:
- Prev by Date: large Files management
- Next by Date: Re: Displaying a Link on A Web PAge with image/png header.
- Previous by thread: Displaying a Link on A Web PAge with image/png header.
- Next by thread: Re: Displaying a Link on A Web PAge with image/png header.
- Index(es):
Relevant Pages
|