on 01-18-2015 4:13 AM
Hi,
I have 2 javascript files in the same directory as the index.html file under WebContent running on HANA. But despite using
createContent : function(oController) { | |
jQuery.sap.require("d3"); | |
jQuery.sap.require("d3.layout.cloud"); |
...
I get
GET http://54.72.75.155:8000/sap/ui5/1/resources/d3-dbg.js 404 (Not Found)
sap-ui-core-dbg.js:8103 GET http://54.72.75.155:8000/sap/ui5/1/resources/d3.js 404 (Not Found)
sap-ui-core-dbg.js:14438 Uncaught Error: failed to load 'd3.js' from /sap/ui5/1/resources/d3.js: 404 - Not Found
I also tried locating both these d3 javascript files the directory 'util' and added this
<script> | ||
sap.ui.localResources("view"); | ||
sap.ui.localResources("util"); | ||
var app = new sap.m.App({initialPage:"testui5"}); |
...
This got the same error message.
So how do you use other javascript resources in your app?
In the end I just used a sap.ui.core.HTML to encapsulate the d3 requirement.
But would be interested in how you include your own local resources in general.
Thanks,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.