|
|
As the user changes inputs in the browser application, the main chart or report requires updating. When an update is required, the browser makes a request to the server `reports/results/` URL, passing all of the user's inputs to the server. The server responds with JSON content created from the `result()` method for the particular chart type being viewed. This content was [described above](#Report/Chart-Creation) and consists of an HTML string and list of objects for the browser to create. Here is the CoffeeScript code in `bmsapp.coffee` that requests that content from the server, inserts the HTML in the `results` div and then creates the requested browser objects (Highcharts charts, Highstock charts, and Dashboards.)
|
|
As the user changes inputs in the browser application, the main chart or report requires updating. When an update is required, the browser makes a request to the server `reports/results/` URL, passing all of the user's inputs to the server. The server responds with JSON content created from the `result()` method for the particular chart type being viewed. This content was [described above](#ReportChart-Creation) and consists of an HTML string and list of objects for the browser to create. Here is the CoffeeScript code in `bmsapp.coffee` that requests that content from the server, inserts the HTML in the `results` div and then creates the requested browser objects (Highcharts charts, Highstock charts, and Dashboards.)
|