I have a jqxGrid. I want to take the contents of that grid and pass them as a JSON string to a PHP function that looks like (where $outputFileContents would contain the JSON string).
$outputFile = fopen(“roster-data.txt”, “w”) or die(“Unable to open data source…”);
$outputFileContents = “jsondata”;
Any ideas on how this can be accomplished. I do see an example of exporting the contents as a JSON file, so I know getting JSON out of the grid should not be a problem. How to capture that as a variable and send it to the PHP function is a bit unclear.