Skip to Content
0

Cordova can not load openui5 file

Jan 19, 2017 at 01:40 PM

39

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member
Jan 19, 2017 at 01:42 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Jamie Cawley
Jan 19, 2017 at 02:04 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0