|
With the use of Andy's method a request is made to the web server. The
web server then serves up or pushes content up to the client along with the
emended application. The web server will also embed dynamic JavaScript variables
that represent attributes of the graph as well as pointers back to the web
server in the form of a URL. This source URL will be used as a pointer back to
the web server that will allow the embedded object to acquire the raw data.
This is done through the embedded object as a web service
known as a REST (Representational
State Transfer) call back to the server to acquire the data. This means
that the URL acts like a function call so that a request is made by the client
and the data is returned.
With this methodology 2 requests are made. The first request
is for the html and a second for the raw data. There may be additional AJAX calls to the server
in order to get the list of metric names, IDs, dates, and other attributes that
can be passed back to the server through the source URL. These parameters can
be used to generating the appropriate data. Once the dashboard (a collection of
reports or graphs) has been configured by the user the state of that dashboard
can be persisted through additional AJAX
calls to the server.
The embedded object will then take this URL and make a call
back to the web server. The web server will then return a set of data as name
value pairs, delimited text, or XML to the embedded object. Once the embedded
application on the client side receives the data it will then transform the
data using a simple matrix transformation algorithm and generate an image
representing the data graphically.
|