Answering your question, and since CI does not seem to have implemented proper javascript library support, you can use such a function to ensure that the information you're dealing with comes from ajax:
http://snipplr.com/view/1060/check-for-ajax-request/
, javascript, jQuery MoonTools
, , $this- > input- > post ('field') $this- > input- > get (' '), .
( jquery), , , :
$(function() {
$('a.delete').click(function(e) {
e.preventDefault();
var cid= $(this).attr('cid');
$.ajax({
type: 'POST',
url: 'http://www.yoursite.com/ajax.php',
data: "action=delete&cid="+cid,
async: true,
success: function(data){
alert(data);
}
});
});
CI . , url ajax (url , ) , url-url-url-, , " url: ajax URL-.