ajax call into dialog box with unique ID

ajax call into dialog box with unique ID

hi guys,... can anyone help please,... 
I have a comments page with a link to report/spam that I want to call into dialog box with ajax,... how can I do this,..? thanks in advance,... 
here is my code: 

 <script>
  $(function() {
$('#photo_comments_opener_<?php echo $photo_comment['PhotoComment']['id'] ?>').dialog({
autoOpen: false,
width: 500,
modal: true,
title: 'Report Photo Comment',

    open: function ()
    {
        $.ajax(function(){
            url: "<?php echo $html->url("/report/photo_comment/" . $photo_comment['PhotoComment']['id']) ?>",
            data: data, 
            type: "post",
            sucess:function(msg){
                $('#photo_comments_opener_<?php echo $photo_comment['PhotoComment']['id'] ?>').html(msg)
            }
        });
   }       

});

  });
  </script> 

and here is the link: 

<?php echo $html->link(ucfirst(__('report', true)), 'javascript:void(0)', array('id' => "photo_comments_opener_".$photo_comment['PhotoComment']['id'], 'class' => 'report')) ?>

PLEASE HELP