On May 31, 7:38 pm, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
> It doesn't seem to work:
>
> $('#foo').click(function() {
>    $.get($(this).find('a:first').attr('href'), function(data){
>       alert($('table#bar', data).html()); // doesn't work. Can't apply
> selector on "data"
>     }
>    );}
>
> );
>
> Is anyone know of any hack to get it working? TIA

   I'm getting close (stuffing to this.data and using it), but still
would love to get better hack:

$('#foo').click(function () {
    $.get($(this).find('a:first').attr('href'), function (data) {
        this.data = data;
        alert($(this).find('table#bar').html());
    }
    );
}
);

     Still there is a problem, couldn't reuse this.data (caching so
that I don't have to $.get() again). Thanks for any input.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/

Reply via email to