on 01-31-2014 9:45 AM
Hi,
I am trying to integrate external js libraries to build the AM Charts.
In the UI5.view.js file, am unable to load the js liraries with the following statement.
jQuery.sap.require("js/amcharts.js");
Please help
Thanks
Mano.
You can add any external file as
jQuery.sap.registerModulePath("ModuleName","http://externalFileDomain.com");
jQuery.sap.require("ModuleName.jsFileName");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mano,
Use this in index.html not in view.js..
<script>
jQuery.sap.includeScript("somefile.js");
</script>
Regards,
Surendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you need to load the JS library. for e.g as below,
<script type='text/javascript' src='http://www.amcharts.com/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.