From: James Britt Date: 2006-03-12T07:51:45+09:00 Subject: Re: cgi script send a bad image to the browser Logan Capaldo wrote: .... > > Actually forgot what i just said, you're doing this all wrong. src > points to a url, not the actual image data. Ajax is also probably > pretty silly for this. Do this in your html: > > > > no javascript, no ajax, just good old fashioned cgi. If you do want > this graph to be more dynamic than that, you're going to have to learn > how the img tag works (like I said src is not image data its a url). You might be able to us JavaScript to get a reference to the desired Image object (in document.images )and update the src property. -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://refreshingcities.org - Design, technology, usability