<div dir="ltr">Thanks Stefano, it works.<div><br></div><div>Any idea how to delete files in acre?  As a workaround I had copied and pasted the code into a file in my app, and now it&#39;s not needed I&#39;d like to delete the file, but can&#39;t seem to find the button....</div>
<div><br></div><div>Iain</div><div><br></div><div><br><br><div class="gmail_quote">On Sat, Jul 4, 2009 at 8:30 PM, Stefano Mazzocchi <span dir="ltr">&lt;<a href="mailto:stefano@metaweb.com">stefano@metaweb.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Iain Sproat wrote:<br>
&gt; What&#39;s the correct path for referencing javascript files from other acre<br>
&gt; apps on the client side?<br>
&gt;<br>
&gt; I&#39;m using acre and trying to reuse the date javascript library from the<br>
&gt; freebase libraries app.  I&#39;ve got the following line in my client side<br>
&gt; code, &lt;script type=&quot;text/javascript&quot;<br>
&gt; src=&quot;<a href="http://libraries.apps.freebase.dev.freebaseapps.com/date" target="_blank">http://libraries.apps.freebase.dev.freebaseapps.com/date</a>&quot;&gt;&lt;/script&gt;.<br>
&gt; But this doesn&#39;t seem to work.<br>
<br>
</div>Right, this doesn&#39;t work because that file is marked as a &#39;script&#39; which<br>
means that if called directly, acre will load it and *execute it* and<br>
then return you the results of that execution, which is empty since that<br>
script doesn&#39;t write anything to the output.<br>
<div class="im"><br>
&gt; The script can be seen<br>
&gt; at <a href="http://acre.freebase.com/#app=/freebase/apps/libraries&amp;file=date" target="_blank">http://acre.freebase.com/#app=/freebase/apps/libraries&amp;file=date</a><br>
&gt; &lt;<a href="http://acre.freebase.com/#app=/freebase/apps/libraries&amp;file=date" target="_blank">http://acre.freebase.com/#app=/freebase/apps/libraries&amp;file=date</a>&gt;<br>
&gt; I can&#39;t use the acre.require command as it is on the server side.<br>
<br>
</div>I&#39;ve made a copy of that file and marked it as &#39;file&#39; instead of script,<br>
so that Acre will just send it back to you instead of executing it. Find<br>
it at<br>
<br>
  <a href="http://libraries.apps.freebase.dev.freebaseapps.com/date_client_side" target="_blank">http://libraries.apps.freebase.dev.freebaseapps.com/date_client_side</a><br>
<br>
Hope this helps.<br>
<br>
--<br>
Stefano Mazzocchi                              Application Catalyst<br>
Metaweb Technologies, Inc.                      <a href="mailto:stefano@metaweb.com">stefano@metaweb.com</a><br>
-------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Developers mailing list<br>
<a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
</blockquote></div><br></div></div>