I am not sure I can do what I am trying to do. I wrote a php script which is to run in CLI as a cron job to output an html file every night of a table of data retrieved from a database. I write it out to a file using output buffering by first using ob_start and then ob_get_contents and finally file_put_contents and it all works very nicely writing out my html to a file.
In the table, I would like to use javascript to create a tablesorter or tablefilter. I have 2 javascript packages that can achieve this and in a web browser, it works fine. But when I output the code to an HTML file to browse later, the javascript table sorter/filter does not work. The javascript package also has the ability for pagination if there are many records, but I believe I could not use this as the output to the html since the data in the html has to be static and it cannot go back out to the server to retrieve the data the way a .php file could. So my main question is, has anyone been sucessful in outputting HTML to a file from php and including writing out javascript to the file to control the final output?
THanks and I hope I wasn't too confusing.
Laura