<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to use script-assets?]]></title><description><![CDATA[<p>I can use the #asset functionality for .css-files but for .js-files it doesn't find the file. There's error shown in the report generation. I'm using it in the same way as in the examples.</p>
<p>Does it require some extra tricks to refer .js-files in a another .js-file?</p>
]]></description><link>https://forum.jsreport.net/topic/1756/how-to-use-script-assets</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 19:06:41 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1756.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Oct 2020 06:59:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to use script-assets? on Invalid Date]]></title><description><![CDATA[<p>I can use the #asset functionality for .css-files but for .js-files it doesn't find the file. There's error shown in the report generation. I'm using it in the same way as in the examples.</p>
<p>Does it require some extra tricks to refer .js-files in a another .js-file?</p>
]]></description><link>https://forum.jsreport.net/post/7838</link><guid isPermaLink="true">https://forum.jsreport.net/post/7838</guid><dc:creator><![CDATA[jahau]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to use script-assets? on Invalid Date]]></title><description><![CDATA[<p>hi! it depends of the context where you reference the asset, can you share an example about how and where you reference the asset, the encoding param of the asset reference is very important in different contexts, maybe you need @encoding=string if you are referencing the asset in the context of a js code, but it will be much clear if you share an example</p>
]]></description><link>https://forum.jsreport.net/post/7842</link><guid isPermaLink="true">https://forum.jsreport.net/post/7842</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to use script-assets? on Invalid Date]]></title><description><![CDATA[<p>You can try this way.</p>
<p>&lt;style&gt;<br />
{#asset /assets/my.css @encoding=utf8}<br />
&lt;/style&gt;</p>
<p>&lt;script&gt;<br />
{#asset /assets/my.js @encoding=utf8}<br />
&lt;/script&gt;</p>
]]></description><link>https://forum.jsreport.net/post/7847</link><guid isPermaLink="true">https://forum.jsreport.net/post/7847</guid><dc:creator><![CDATA[bt-serdarbuyuktemiz]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to How to use script-assets? on Invalid Date]]></title><description><![CDATA[<p>Yes, that's the way I'm using. When importing some example to my server, everything works and also new files work if I clone them from the example. When I add new code file to the project without cloning, the #asset does not work at all. I don't know what is happening behind the scenes but I'll manage with this information though it's a &quot;bit&quot; strange.</p>
]]></description><link>https://forum.jsreport.net/post/7848</link><guid isPermaLink="true">https://forum.jsreport.net/post/7848</guid><dc:creator><![CDATA[jahau]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>