add some javascript lib as external link

Interested in talking about Mash-up's? This is the place.
arianna
Posts: 1
Joined: Tue Jul 09, 2019 6:43 am

add some javascript lib as external link

Postby arianna » Tue Jul 09, 2019 7:13 am

Dear support,
I try to add some javascript lib as external link and I want to use this resource into my zimlet code. Can you help me?

Example javascript in html page I want to do similar thing with my zimlet:
<script src="https://cdnjs.cloudflare.com/ajax/libs/.../extlib.js" integrity="..." crossorigin="anonymous"></script>

<script>
var doc = new jsPDF();
...
</script>

Action:
I try to include in the xml file the external link but my zimlet code not work.

Example my xml file:
<zimlet name="com_zimbra_..." version="1.0" description="...">
<include>https://cdnjs.cloudflare.com/ajax/libs/.../extlib.js</include>
<include>com_zimbra_...js</include>
<handlerObject>com_zimbra_..._HandlerObject</handlerObject>
</zimlet>


Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 3 guests