Select to view content in your preferred language

Load JS API Dynamically

659
0
10-05-2013 05:18 PM
ShaunWeston
Frequent Contributor
I'm trying to load the Javascript API dynamically, so basically what I'm trying to do is load the jQuery library then once that has loaded, load the ArcGIS JS library, like this:

    <script type="text/javascript" src="libraries/jQuery/1.10.1/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src="libraries/jQueryUI/1.10.3/jquery-ui.min.js"></script>    
    <script type="text/javascript">
        <!-- When jQuery has loaded -->
        $(document).ready(function () {
            // Show the progress bar
            $("#appLoadBar").progressbar({
                value: false
            });
            $.getScript('http://js.arcgis.com/3.7compact');
        });


Doesn't seem to work though. Anyone have any experience with something like this?
0 Kudos
0 Replies