[eluser]ardlian.net[/eluser]
i use this code of my controller main with method load
Code:
function load(){
$this->load->view("content_load");
}
and i load this controller with jquery load function
Code:
function load(url,div){
$(div).load(url);
$("#loading").ajaxStart(function(){
$(this).show();
});
$("#loading").ajaxStop(function(){
$(this).hide();
});
}
and this my code for the view
Code:
<li>
<a href="[removed]void(0)" title="Home" id="load">Load</a>
</li>
and the result is not foun 404
the question is.. wy the controller can't load direcly with load function of jquery function?
couse if i load the view direcly, the page can be loaded with this code
Code:
<li><a href="[removed]void(0)" title="Home" id="load">Load</a></li>
but i think this not MVC based...
ned you advice brother... thx