Try this:
$('.rowContent').click(function(){
  var row = this;
  $.get("getCountryContent.cfm", { u: row.id }, function(data){
    // this == the options for this ajax request
    var $conteudo = trim12( data );
    alert("Data Loaded: " + $conteudo);
    $( '#' + row.id ).append( $conteudo );
  });
});

http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype

On 30 Sep., 20:27, "Web Specialist" <[EMAIL PROTECTED]> wrote:
> Hi all. I have this very simple content:
>
> <tr>
>     <td class="rowContent" id="902_1200_2008">United States</td>
> </tr>
> <tr>
>     <td class="rowContent" id="104_500_2008">Canada</td>
> </tr>
>
> When user clicks in any row i'll want to display the details about that row.
> I'm using this but without success:
>
> $('.rowContent').click(function(){
> $.get("getCountryContent.cfm", { u: this.id },
>   function(data){
>   var $conteudo = trim12( data );
>     alert("Data Loaded: " + trim12( data ));
>     $( '#' + this.id ).html(trim12( data )).append();
>   });
>
> });
>
> This ajax response is an html table...
>
> What's wrong?
>
> Cheers
> Marco Antonio

Reply via email to