So, why can't you just create a new <img> node with a src attribute?  It
will automatically download the image in the background, much like with
AJAX.  Is the problem that you want to ensure that the image is fully
downloaded before you try to display it?  Have you tried
$(imgTag).ready(...)?  (Don't know if that works or not, never tried it)

On Wed, Jan 6, 2010 at 8:14 AM, Mean Mike <mcgra...@gmail.com> wrote:

>
>  > So you are trying to use jQuery's ".load()" functionality with an
>  > actual image (i assume that your php sets the content type to
> image/
>  > jpeg, image/gif, etc and writes out the actual binary image
> data) ?
>
> YES ! that is correct.
>
>  > that's not going to work, as the ".load()" loads the result of the
>  > Ajax call into the innerHtml of DOM object
>
> I'm assuming thats why I get Array
>
>  > I don't know though, you're talking "same function" but have
> posted
>  > about three different functions so far, $.ajax, .load, and your
> custom
>  > function....
> mmm sorry for the confusion
>
> I wanted to see if i could just get it to work with load that's why I
> mentioned it ..
>
>  > but bottom line is, the $.ajax call which ultimately
>  > gets called wouldn't be a replacement for <img src="your.php" />,
>
> bummer 8 ^ (
>
>  > *unless* you wanted to use data url vales as image sources
> (like:http://www.websiteoptimization.com/speed/tweak/inline-images/),
> but
>  > the problem with that, like almost all cool ideas like that link
>  > shows, is it doesn't work with IE
>
> neat concept but not doable trying to stick with ajax
>
> Thanks for your help
> Mean Mike
>



-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

Reply via email to