jquery - unload template file with javascript -


so have hundreds of views, in each of view loads templates files. there 1 of templates needs remove view. can remove manually 1 one views commenting out.

but there simple ways unload template. template in .php extension (chat.php). may put script unload php file in footer template. footer inside body tag.

thanks help.

$this->load->view(chat.php) 

is server-side statement. real unload not possible.

i see 2 possibilities come closer question. 1. can search container of chat.php , delete it. chat.php isnt there anymore initial loaded. 2. hide chat.php if layout porpose.

the problem both cases is, there network traffic chat php. if want "unload" chat php have ist php. otherwise can implement frontend mvc-framework angularjs. able not load templates on javascript conditions.


Comments