作者:尹琢抵 | 来源:互联网 | 2023-06-07 16:24
ImusingjQuerywithCIforloadingaviewinthistag:我正在使用带有CI的jQuery来加载此标记中的视图:<dividbr
I'm using jQuery with CI for loading a view in this tag:
我正在使用带有CI的jQuery来加载此标记中的视图:
This script is placed after the
tag:
此脚本放在
标记之后:
Note, that any parameters are passed in the URL segments. In the controller I'm returning the content with this line:
请注意,任何参数都在URL段中传递。在控制器中,我将使用以下行返回内容:
$this->load->view('browse/browse_results', $main_data);
Using Firebug I can see that the status is 200 and the html content is generated as it should (also the callback is executed).
使用Firebug我可以看到状态为200并且html内容按原样生成(也执行回调)。
Although I can see the html page in Firebug, the content is not displayed in the browser at all. Note also that I have successfully used a similar procedure in another controller/view.
虽然我可以在Firebug中看到html页面,但内容根本不会显示在浏览器中。另请注意,我已在另一个控制器/视图中成功使用了类似的过程。
1 个解决方案