cancel
Showing results for 
Search instead for 
Did you mean: 

Cordova can not load openui5 file

Former Member
0 Kudos

Hi,

I am using cordova and openui5 to create mobile app, however as you know, ui5 does not load all the js firstly, only when some js file is required, such as d3, the framework help load that file by xhr. My issue is, in cordova, since I use the local ui5 file, now when the d3 file is required, it is also loaded from local file by file:///, but this is forbidden due to cross domain. So the problem is that I can not use d3 and any other js file which are loaded dynmicilly. Any idea on this?

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

jamie_cawley
Advisor
Advisor
0 Kudos

I would think that maybe your version of openui5 does not have d3 included in it. Check your source files, it should be under resources/sap/ui/thirdparty.

Regards,

Jamie

SAP - Technology RIG

Former Member
0 Kudos

Thanks a lot Jamie, it does not seem to d3 issue, if I use cordova serve to test on my chrome, all work fine, but when I test on the real device or andriod emulator, it does not work......I am trying to setup debug tool to see more error msg....

Regards,

Andy

Former Member
0 Kudos

If I use online ui5 js, this is not is problem