Hi,
Anybody can help, why I am unable to use loadlibrary() function inside the delivery. Thank you
kind Regards
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Jon recommends a way which will work for you but Personalisation blocks are not designed to include the Js objects in Deliveries.
You should use the following method to include the Js.
This will Add your Js object into your execution context similar to what load library does.
in delivery you can use something like:
<% eval( bigint.data ) ; %>
Regards,
Amit
Regards,
Amit
Hi,
The loadLibrary() function is not available in deliveries.
Copy the desired js into a personalization block and include that, it's pretty much the same.
Thanks,
-Jon
Hi,
Jon recommends a way which will work for you but Personalisation blocks are not designed to include the Js objects in Deliveries.
You should use the following method to include the Js.
This will Add your Js object into your execution context similar to what load library does.
in delivery you can use something like:
<% eval( bigint.data ) ; %>
Regards,
Amit
Regards,
Amit
Hello, so I finally figured it out and it works:
(function b (num) {return num + 4;})
In the delivery you can use it by
<% var b = eval (yourscript.data);%>
<%= b(4)%>
So I would use personalization blocks as well for the sake of performance and usability.
Views
Replies
Total Likes
Views
Likes
Replies