I&#39;m going to take a wild guess and bet you are still running behind the lightppd webserver I believe you mentioned in another post.<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 8:25 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi folks,<br><br>I have a problem with a library. I am using a Pier Gallery addon that uses Prototype.js, scriptaculus, builder, effects, etc. My application DOESN&#39;T  have SULibrary added. It has it&#39;s own library called DestinoMochilaLibrary with this method:<br>

<br><br>DestinoMochilaLibrary&gt;&gt;selectorsToInclude<br>    ^ #(destinoMochilaCss)<br><br><br>Now, to be able to use that plugin I override the method updateRoot: like this:<br><br> DestinoMochilaLibrary&gt;&gt;updateRoot: aHtmlRoot<br>

    super updateRoot: aHtmlRoot.<br>    aHtmlRoot javascript url: &#39;<a href="http://www.roard.com/lightbox2/js/prototype.js" target="_blank">http://www.roard.com/lightbox2/js/prototype.js</a>&#39;.<br>    aHtmlRoot javascript url: &#39;<a href="http://www.roard.com/lightbox2/js/scriptaculous.js?load=effects,builder" target="_blank">http://www.roard.com/lightbox2/js/scriptaculous.js?load=effects,builder</a>&#39;.<br>

    aHtmlRoot javascript url: &#39;<a href="http://www.roard.com/lightbox2/js/lightbox.js" target="_blank">http://www.roard.com/lightbox2/js/lightbox.js</a>&#39;.<br>    aHtmlRoot stylesheet url: &#39;<a href="http://www.roard.com/lightbox2/css/lightbox.css" target="_blank">http://www.roard.com/lightbox2/css/lightbox.css</a>&#39;<br>

<br>Obviously this is not good because I am requesting another website. Thus, I wanted to have it locally. Then I did this:<br>- Add SULibrary to my application <br>- Downloaded the <a href="http://www.roard.com/lightbox2/js/lightbox.js" target="_blank">http://www.roard.com/lightbox2/js/lightbox.js</a> and <a href="http://www.roard.com/lightbox2/css/lightbox.css" target="_blank">http://www.roard.com/lightbox2/css/lightbox.css</a> because they are not in SULibrary.<br>

- Then I uploaded both files to SULibrary and I could perfectly see the new methods lightboxJs and lightboxCss in SULibrary.<br>- I can also see all links in <a href="http://localhost:8888/seaside/files/SULibrary/" target="_blank">http://localhost:8888/seaside/files/SULibrary/</a><br>

- Removed DestinoMochilaLibrary&gt;&gt;updateRoot:<br><br>The problem is that if I remove the DestinoMochilaLibrary&gt;&gt;updateRoot:   (which should be not used now), the plugin doesn&#39;t work. It is like if cannot find the javascript libraries.<br>

<br>Let&#39;s take the example of protoype. In the first version, my html rendered shows:<br><br>&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://www.roard.com/lightbox2/js/prototype.js" target="_blank">http://www.roard.com/lightbox2/js/prototype.js</a>&quot;&gt;&lt;/script&gt;<br>

<br>which is correct. After my changes, I see:<br><br>&lt;script type=&quot;text/javascript&quot; src=&quot;/seaside/files/SULibrary/prototype.js&quot;&gt;&lt;/script&gt;<br><br>which I think it is also correct.<br><br>Now...what can be the problem that the plugin doesn&#39;t work ???<br>

<br><br>More information. If I change my code to this:<br><br><br>updateRoot: aHtmlRoot<br>    super updateRoot: aHtmlRoot.<br>    aHtmlRoot javascript url: &#39;<a href="http://localhost:8888/seaside/files/SULibrary/prototype.js" target="_blank">http://localhost:8888/seaside/files/SULibrary/prototype.js</a>&#39;.    <br>

    aHtmlRoot javascript url: &#39;<a href="http://localhost:8888/seaside/files/SULibrary/builder.js" target="_blank">http://localhost:8888/seaside/files/SULibrary/builder.js</a>&#39;.<br>    aHtmlRoot javascript url: &#39;<a href="http://localhost:8888/seaside/files/SULibrary/effects.js" target="_blank">http://localhost:8888/seaside/files/SULibrary/effects.js</a>&#39;.<br>

    aHtmlRoot javascript url: &#39;<a href="http://localhost:8888/seaside/files/SULibrary/lightbox.js" target="_blank">http://localhost:8888/seaside/files/SULibrary/lightbox.js</a>&#39;.<br>    aHtmlRoot stylesheet url: &#39;<a href="http://localhost:8888/seaside/files/SULibrary/lightbox.css" target="_blank">http://localhost:8888/seaside/files/SULibrary/lightbox.css</a>&#39;<br>

<br>It works perfect!! But I don&#39;t think I have to do this...I must be doing something wrong.<br><br>Thanks a lot for the help in advance.<br><font color="#888888"><br>Mariano<br><br>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st">http://jmck.seasidehosting.st</a><br>