Script example: Charting the data in a file

This sample page uses the eSuite FileReader applet to extract a data array from a text file and publish it to the InfoBus. The FileReader gets the name of the file to publish from a data item passed to it by the eSuite InfoBusBridge, which obtains the name from user input to an HTML text entry field. This happens when the user clicks the OK button, and a JavaScript onClick event handler then uses InfoBusBridge.publishStringToBus method to publish the file to the InfoBus. The eSuite chart applet then charts the data if the data has the format of a chart data set.







Enter the name of a chart data set file and click OK. You can use the default file.

To view the full source for this example, right-click in the example frame and click View Source.