<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 11:06 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;">
<br><br><div class="gmail_quote"><div class="im">On Tue, Jul 14, 2009 at 11:21 PM, John McKeon <span dir="ltr">&lt;<a href="mailto:p3anoman@gmail.com" target="_blank">p3anoman@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;">


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></blockquote></div><div><br><br>are you god ?  hahahah . Yes I am. But I am not serving css or js, just photos. I mean in /var/www/   I have only pictures. I even don&#39;t map /seaside/files to something in /var/www<br>

<br>My lighttp.conf is the default one<br>
<br>Is this wrong ? I dont understand :(</div></div></blockquote><div><br>This is proof that the user agent is calling back to the server for the content referred to in those links. Whether they point to a local subdirectory (to the server) or some other domain entirely. <br>
The page is telling the server &quot;give me the page at \seaside\files\SULibrary\etc&quot; but there is no such directory as far as the lightppd server knows. You have to tell lightppd to redirect such requests to localhost:xxxx OR (and I could be mistaken on this) put the files in the correctly defined subdirectory where the server can find them. (The library config page&#39;s &quot;write files to disk&quot; link is useful for this). The way to redirect is simple. Tudor Girba, I believe, wrote up a brief tutorial on <a href="http://www.piercms.com">www.piercms.com</a> for apache. lightppd is probably very similar but i have no idea.<br>
<br>John <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><br>Thanks!<br><font color="#888888"><br>
Mariano<br> </font></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div class="gmail_quote">
<div><div></div><div>On Tue, Jul 14, 2009 at 8:25 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>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></div></div>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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><font color="#888888"><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st" target="_blank">http://jmck.seasidehosting.st</a><br>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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></div></div><br>
<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>