Welcome Guest, Not a member yet? Register   Sign In
load view from javascript
#1

[eluser]Unknown[/eluser]
i called a controller from javascript.

the last code in the controller method is
$this->load->view('search',$data);

so it should load the user interface on the brower.

but the user interface does not display.


so,may i know how to load the view file in javascript?

thank you
#2

[eluser]Phil Sturgeon[/eluser]
I take it you are trying to use AJAH here? Like AJAX, but chunks of HTML instead of XML returned.

Give it a try with jQuery, easy as sin.

Ajax/load - jQuery Documentation




Theme © iAndrew 2016 - Forum software by © MyBB