[eluser]pickupman[/eluser]
Just to add on to the javascript idea, is to always use the same syntax and add js later. Yes, 98% people have it but you never know.
Code:
//Change link to
<?php echo anchor('site/click_artifact/', $r->ArtifactID,$r->ArtifactID, array('title'=> $r->ArtifactID, 'class' => 'artifact_link')); ?>
//jQuery
$("a.artifact_link").click(function(){
event.preventDefault();
var id = $(this).attr("title");
$.load('<?php echo site_url('site/click_artifact');?>' + '/' + id #message); //Fetch url and add to div#message
});