Formatting Search results from AJAX search
Posted on 2014-03-14
We have (for example) a management system written using CodeIgniter.
This one (for example) is a list of diagnostic information of 100 PC systems.
The existing view code roughly goes
foreach ($query->result() as $row)
// resolve a load of numerical data into meaningful text strings using CodeIgniter helpers
// resolve another load of numerical data into image inserts using CodeIgniter helpers functions
// create a html string for that row
// output the row
We're looking to implement a dynamic search facility using an AJAX call and have the results brought back as a JSON object.