this was what worked for me.
$(document).ready(function() {
$('#image').live('change', function()
{
$("#imageform").ajaxForm({
target: '#preview',
dataType: 'json',
success : function (response) {
$('#thumb_img').attr('src','images/thumbs/'+response.imgsrc);
}
}).submit();
});
});