[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Rob Desbois
Traunic 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

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Klaus Hartl
Rob Desbois wrote: Traunic 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

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Rob Desbois
Yes, sorry I didn't phrase my post very well: there is a URL for the image, of course, but I was trying to emphasise that there isn't a URL to an image cached on the server's filesystem to pass back, as I don't want to *permanently* cache the image (or implement a cleverer algorithm - there's no

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Christof Donat
Am Mittwoch, 25. Juli 2007 schrieb Rob Desbois: Yes, sorry I didn't phrase my post very well: there is a URL for the image, of course, but I was trying to emphasise that there isn't a URL to an image cached on the server's filesystem to pass back, as I don't want to *permanently* cache the

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Rob Desbois
Christof, Thanks for that, but I was really looking to see if there was a browser-independent mechanism, essentially something like the Web archives that IE has supported for years. I think adding components for this would be over-complicating the matter. Thanks anyway. --rob On 7/25/07,

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Christof Donat
Hi, Thanks for that, but I was really looking to see if there was a browser-independent mechanism, No, there isn't. Canvas and IECanvas is the closest you can get. I have done quite some research on that matter for a project where I really could have profited from canvas, but IECanvas was

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Rob Desbois
I never noticed that they ever were browser-independent. I know, that's why I said 'that IE has supported for years' and why I can't use them. Despite the ways there are to do this such as these canvas projects or something big and bulky client-side (Java, Flash possibly, any number of similar

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Klaus Hartl
Rob Desbois wrote: I never noticed that they ever were browser-independent. I know, that's why I said 'that IE has supported for years' and why I can't use them. Despite the ways there are to do this such as these canvas projects or something big and bulky client-side (Java, Flash

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-25 Thread Christof Donat
Hi, I believe the ctx variable should be: var ctx = $('canvas')[0].getContext(2d); I was expecting that a canvas tag exists on the page. If it doesn't it should better be something like this: var ctx = $('canvas').appendto('body')[0].getContext(2d); Christof

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-24 Thread Rob Desbois
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

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-24 Thread traunic
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)

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-24 Thread traunic
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

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-24 Thread Christof Donat
Hi, 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

[jQuery] Re: Possible to retrieve image data via AJAX for display?

2007-07-23 Thread Dan G. Switzer, II
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