[eluser]peekk[/eluser]
Hello, I have a few views in divs loaded on my page.
and I have something like that:
Code:
<div id=header>
...
...
</div>
<div id=content>
...
...
...
<a href="#" class="ref"> refresh extra div </a>
<div id=extra>
<?php $this->load->view('extra.php'); ?>
</div>
....
....
...
</div>
<div id=footer>
...
...
</div>
Now I want to refresh my #extra div after some action, for example clicking on the "refresh extra div" link.
I was trying to use jquery in a way:
Code:
$(".ref").click(function() {
$('#extra').load(<?php $this->load->view('extra.php'); ?>);
});
but it doesnt work - how to do it? How to dynamically refresh divs which views?
Thanks!