Created
June 22, 2011 15:08
-
-
Save johnrobertwilson/1040289 to your computer and use it in GitHub Desktop.
Adapter Load Libraries via ARRAY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATAVIZ.adapters.jqplot = function() { | |
$.ajaxSetup({async: false}); | |
$.getScript('DATAVIZ.jqplot.js'); | |
$.ajaxSetup({async: true}); | |
} | |
DATAVIZ.adapters.jit = function() { | |
$.ajaxSetup({async: false}); | |
$.getScript('DATAVIZ.jit.js'); | |
$.ajaxSetup({async: true}); | |
} | |
DATAVIZ.adapters.highcharts = function() { | |
$.ajaxSetup({async: false}); | |
$.getScript('DATAVIZ.highcharts.js'); | |
$.ajaxSetup({async: true}); | |
} | |
DATAVIZ.render(adapter_callback, data_object, type, container_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment