post processing html returned from an ajax call

post processing html returned from an ajax call

i'm dynamically filling a div with an ajax call like so :

  1. $j.ajax({
                        'async':false,
                        'url':'<?php bloginfo(template_directory); ?>/work-ajax.php',
                        'success':function (data)
                        {
                            // alert(data);
                            $j('#work-container').html(data);
                        },
                        'complete':function ()
                        {
                            workloaded();
                        }
                    });











the # work-container is hidden until workloaded() is called.  however, this isn't performing as expected.  the ajax "complete" callback fires when the html is returned, but before it's processed by the browser.  namely, before the browser has finished loading the images that are in the returned html.

the idea is something like "<div onload=function()>" but that isn't supported.  what am i missing?  is this even possible?  is there an event for this?  i would hate to have to code onload statements for each image, but it's the only thing i can think of.

please help!