Welcome Guest, Not a member yet? Register   Sign In
JQuery.load() or $this->load->view()
#2

[eluser]PhilTem[/eluser]
You need to perform an AJAX-Request when somebody clicks on the div or the link. The action therefore (the argument of the 'load()' function) must be an url to a page that has only the content you want to have as replacement for your old content.

It should be something like this

Code:
$('#extra').load('test/ajax_refresh');

And your controller "test" with method "ajax_refresh" would look like
Code:
function ajax_refresh()
{
  $this->load->view('extra');
}


Messages In This Thread
JQuery.load() or $this->load->view() - by El Forum - 06-24-2012, 11:25 AM
JQuery.load() or $this->load->view() - by El Forum - 06-24-2012, 01:42 PM
JQuery.load() or $this->load->view() - by El Forum - 06-25-2012, 12:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB