Welcome Guest, Not a member yet? Register   Sign In
$.jQuery.load() Partial HTML
#2

[eluser]clip[/eluser]
Code:
$partial = $this->load->view('partial/myview', $data, TRUE);
echo $partial;

Point to your controller/method maybe its something like post/ajaxview/3

You could also create a function that checks to see if the request url is ajax and build that logic into your controller to avoid creating one specificaly for ajax requests.


Messages In This Thread
$.jQuery.load() Partial HTML - by El Forum - 11-05-2009, 01:47 PM
$.jQuery.load() Partial HTML - by El Forum - 11-05-2009, 02:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB