cancel
Showing results for 
Search instead for 
Did you mean: 

loading external library using jQuery.sap.require

Former Member
0 Kudos

Hi ,

I am facing some problem while loading external libraries .

for example if am loading jspd.debug.js using jQuery.sap.require in some part of my code but not in index.html it is throwing an error like file not found .

But if i change the file name of jspdf.debug.js to jspdf-debug.js then it is loading fine.

can some one please suggest me how to load external file for whose name consists of dot(.)

Thanking You

Accepted Solutions (0)

Answers (1)

Answers (1)

Katan
Active Participant

Hi Jagdish,

This is documented in the UI5 JsDoc...

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - jQuery.sap

So for you it would be something like this...

jQuery.sap.require({modName: "jspdf", type: "debug"});

Cheers,

Katan