On Sat, Jul 11, 2009 at 8:27 PM, Nicolas Roard <nicolas.roard@gmail.com> wrote:
On Sat, Jul 11, 2009 at 8:01 PM, Mariano Martinez
Peck<marianopeck@gmail.com> wrote:
>
>
> On Sat, Jul 11, 2009 at 2:25 PM, Brian Brown <rbb@techgame.net> wrote:
>>
>> For development you can just set up Kom to serve a local directory - I
>> don't remember off the top of my head, but you should be able to look at the
>> class comment for Kom and I think it has some examples. You will find some
>> if you google for it as well. If you are still having issues after that,
>> drop me a note and I'll dig it up.
>
>
>
> Brian: I didn't know that was possible. But it doesn't matter. I didn't know
> installing and configure lighttp were as simpler as 5 minutes :)
>
> Nicolas: I make it work!!!!!  Almost perfect! It serves and shows the
> images.

Awesome, glad to hear this!

> The little problem I have now is that the lightbox and all that nice
> javascript that you have in your webpage isn't in mine. They have no
> javascript at all. No lightbox. I have my personal library for my Pier
> website and I ovveride updateRoot to the code you said in your webpage:
>
>
> updateRoot: aHtmlRoot
>       super updateRoot: aHtmlRoot.
>       aHtmlRoot javascript url: 'http://www.roard.com/lightbox2/js/prototype.js'.
>       aHtmlRoot javascript url:
> 'http://www.roard.com/lightbox2/js/scriptaculous.js?load=effects,builder'.
>       aHtmlRoot javascript url: 'http://www.roard.com/lightbox2/js/lightbox.js'.
>       aHtmlRoot stylesheet url: 'http://www.roard.com/lightbox2/css/lightbox.css'
>

Well if you did that, it should work. Check the html of the page
showing the gallery, it should have those added javascript and
stylesheet links. Note though that you probably should host the
lightbox2 files yourself rather than hotlinking on my server :) (I did
a couple of slight modifications in the files, mostly wrt the url of
the images used by lightbox2).
 
Let me say I am still newbie with seaside and Pier. Now I have to questions:
 
1) when does is the updateRoot: called? Because I put a breakpoint there but didn't stop :(  I tried removing and adding the library again...but nothing.
 
2) How can I serve css and .js with lighttp so that seaside can see them? I mean, I know that I have to copy those files to /var/www/whatever but then...how can I tell seaside to get the styles for there? Right now what I have for my styles is my own library where I implemented the method selectorsToInclude and there I include the method that answers the css as a String.
 
Thanks for the OT (it is not a gallery related) help!!!
 
Mariano
 
 


If the page does have those links, then I'm not sure why things aren't
working -- maybe a conflict with some other js lib ?

--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki