How do I access the results of an ajax query?

What I'm trying to do is search the results, preload any images found  
in the results, and only after that display to the page.

Certainly, the query is fine...returns the results ot the page...but  
I'm not sure hwo Jquery goes from there...


// the query call has been done and we have results = html
function(html)
{
        // preloading images...or the want of doing so
        // the css tree is correct...it should work
        // it would also not perform preload when images didn't exist
        $('.thumbwrap li a img').each(function()
        {
                $(this) = new Image();
                $(this).attr('src') = image;
        });

        // back to the page     
        $('div#ajaxhold').html(html);
});

I've been unable to get further than this. ;(

thanks

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to