a more recent post about this topic 
http://rifers.org/blogs/gbevin/2005/4/11/embedding_images_inside_html

and make sure to check out the link to 
http://neil.fraser.name/software/img2html/
because that is just sick!  Taking your idea to the next demented
level

-w

On Jul 24, 2:20 pm, traunic <[EMAIL PROTECTED]> wrote:
> how does raw image data get you anything?  Seems you want the data and
> the image URL via XHR and then dynamically insert your DOM bits (img
> tag w/ URL from response with some sort of wrapper containing your
> legend)...  I mean, what you are talking about is technically doable
> (not in all browsers)http://www.kryogenix.org/days/2003/10/18/embedding
> but I am not sure it gets you anything.
>
> -wade
>
> On Jul 24, 3:59 am, "Rob Desbois" <[EMAIL PROTECTED]> wrote:
>
> > JK,
> > Thanks but no - that's my alternative.
>
> > Dan,
> > Absolutely, please do tell me if I am!
>
> > I have a server-side script which generates a graph image given a set of
> > dataset identifiers. Additional datasets are implicitly added server-side
> > too.
> > Currently the image contains the legend, but I'd like to generate the legend
> > in HTML as it'll be more consistent with legends used for tables.
> > The legend contents cannot be determined until partway through graph
> > generation - so I'd like to retrieve both raw image data and legend data via
> > AJAX, build the legend's HTML representation and display the image.
>
> > Otherwise, I'll use an AJAX request to return the legend data, and cache the
> > intermediate step so that when I insert the <img> tag for the graph, the
> > generating script doesn't need to repeat the first part.
>
> > What do you think?
>
> > --rob
>
> > On 7/23/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>
> > > Rob,
>
> > > >I have a feeling the answer is a flat 'no', but want to check: is it
> > > >possible for an AJAX request to retrieve binary image data (e.g. raw
> > > >GIF) and display that on the page?
>
> > > Can you describe the *exact* effect your trying to achieve?
>
> > > Why do you think you need to load binary image data via AJAX?
>
> > > I'm asking just to make sure you're not barking up the wrong tree...
>
> > > -Dan
>
> > --
> > Rob Desbois
> > Eml: [EMAIL PROTECTED]
> > Tel: 01452 760631
> > Mob: 07946 705987
> > "There's a whale there's a whale there's a whale fish" he cried, and the
> > whale was in full view.
> > ...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to