A good DRY solution would be to modularize the table/graph view into a template and reuse it, changing the target page elements and appropriate AJAX parameters. Actually, shouldn't do 2 separate ajax requests for a single tick. Instead of modularizing a template, just modularize the javascript. Take page element/JSON key as an input.
A good DRY solution would be to modularize the table/graph view into a template and reuse it, changing the target page elements and appropriate AJAX parameters. Actually, shouldn't do 2 separate ajax requests for a single tick. Instead of modularizing a template, just modularize the javascript. Take page element/JSON key as an input.