How to get the result of Javascript in Codeigniter?

Good evening. The task was to process some data, a solution was found using JavaScript. But there was one little problem, after treatment, need to return data back to the controller, how it can be implemented?

First load the controller, then extracts from the database information that is loaded into a huge array sent to the view, in the form of information processed by JavaScript.

Please do not contact me about design, $this->load->view("page.php", $data, TRUE), this design will bring all the existing code on the page, and I need to get only the result.

Thank you.
June 10th 19 at 16:24
1 answer
June 10th 19 at 16:26
In JavaScript nothing in the form is not processed. Teach materiel
Seriously? How I managed to implement this? Hooked up a few js libraries, and bound them together. When downloading is processing some information and then writes the output to the screen. - Neil.Morar commented on June 10th 19 at 16:29
Read carefully!
codeigniter3.info/guide/general/views

A view is simply a web page, or a page fragment, like a header, footer, sidebar, etc. - Neil.Morar commented on June 10th 19 at 16:32
the page is a "view" as long as its templating engine on the server side renders. And javascript runs on the client side. - samir39 commented on June 10th 19 at 16:35
Damn, I forgot that JS runs on the client side. Thank you. Will have to use curl. - Neil.Morar commented on June 10th 19 at 16:38

Find more questions by tags CodeIgniter