I am trying to create an Ajax suggestion feature inside the codeigniter using jQuery. However, when I am using the .load () function in jQuery, I can not find any way to call the controller, I am calling it this way:
However, the content does not load. I then tried to use: And as it was expected, it does not work again because I need to call the controller, not just the view itself. So my question is, how can I use .load () to call the AJAX function to the controller. Output.php If more detail is needed, please just ask. When you are having problems with AJAX requests, you can see the server's response If you allow to display errors, then Google Chrome and F12 on the Internet in Internet Explorer Press. , It will be there $ ("# Sugresultcontain") ('Http: // localhost / ajaxtest / suggest # loadsuggest');
$ ("#sugresultcontain"). Load ('http: //localhost/ajaxtest/application/views/ajaxref/suggest.php #loadsuggest' );
Comments
Post a Comment