FileLibrary - how to update stylesCss?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

FileLibrary - how to update stylesCss?

Sophie424
I have MyFileLibrary and imported a regular styles.css file into it, so I
now have a method #stylesCss.

In my specialized session class I do:
updateRoot: anHtmlRoot
 super updateRoot: anHtmlRoot.
 anHtmlRoot stylesheet
  url: MyFileLibrary / #stylesCss.

But now when I change the string in my #stylesCss method the new styles do
not seem to reach the browser (after browser cache clear etc.) Is there
something special I need to do? I'm not using Apache or anything fancy, just
straight served from Squeak (WAKom I think).

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: FileLibrary - how to update stylesCss?

Rajeev Lochan
Hi,
You need to have this method

MyFileLibrary >>selectorsToInclude
    ^ #( styleCss )

I doubt if you have to include anything abuot styleCss in updateRoot.

Hope this helps,
Rajeev


On Dec 27, 2007 3:32 PM, itsme213 <[hidden email]> wrote:
I have MyFileLibrary and imported a regular styles.css file into it, so I
now have a method #stylesCss.

In my specialized session class I do:
updateRoot: anHtmlRoot
 super updateRoot: anHtmlRoot.
 anHtmlRoot stylesheet
 url: MyFileLibrary / #stylesCss.

But now when I change the string in my #stylesCss method the new styles do
not seem to reach the browser (after browser cache clear etc.) Is there
something special I need to do? I'm not using Apache or anything fancy, just
straight served from Squeak (WAKom I think).

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Rajeev Lochan

Co-founder, AR-CAD.com

http://www.ar-cad.com
+91 9243468076 (Bangalore)
080 65355873
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: FileLibrary - how to update stylesCss?

Philippe Marschall
2007/12/27, Rajeev Lochan <[hidden email]>:
> Hi,
> You need to have this method
>
> MyFileLibrary >>selectorsToInclude
>     ^ #( styleCss )

No, it's either one or the other. Either you add the links to the CSS
explicitly in #updateRoot: or let them be automatically included by
#selectorsToInclude. This works only if you added this library to your
application.

In general a good test is to go to:
/seaside/files/MyFileLibrary/styles.css
hit F5 in FireFox and see if what you see matches your expectations.

Cheers
Philippe


> I doubt if you have to include anything abuot styleCss in updateRoot.
>
> Hope this helps,
> Rajeev
>
>
>
> On Dec 27, 2007 3:32 PM, itsme213 <[hidden email]> wrote:
> > I have MyFileLibrary and imported a regular styles.css file into it, so I
> > now have a method #stylesCss.
> >
> > In my specialized session class I do:
> > updateRoot: anHtmlRoot
> >  super updateRoot: anHtmlRoot.
> >  anHtmlRoot stylesheet
> >  url: MyFileLibrary / #stylesCss.
> >
> > But now when I change the string in my #stylesCss method the new styles do
> > not seem to reach the browser (after browser cache clear etc.) Is there
> > something special I need to do? I'm not using Apache or anything fancy,
> just
> > straight served from Squeak (WAKom I think).
> >
> > Thanks - Sophie
> >
> >
> >
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
>
> --
> Rajeev Lochan
>
> Co-founder, AR-CAD.com
>
> http://www.ar-cad.com
> +91 9243468076 (Bangalore)
> 080 65355873
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: FileLibrary - how to update stylesCss?

Sophie424

"Philippe Marschall" <[hidden email]> wrote in message

> In general a good test is to go to:
> /seaside/files/MyFileLibrary/styles.css
> hit F5 in FireFox and see if what you see matches your expectations.

I did this as a check, and got a consistently out-of-date version of
styles.css, even when the method stylesCss was clearly different. Then after
a while it suddenly righted itself.

I had session timeout bumped up
MySession>>initialize
    super initialize.
    self timeoutSeconds: 60 * 60.

Could there be some caching going on for the duration of a session?

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: FileLibrary - how to update stylesCss?

Philippe Marschall
2007/12/31, itsme213 <[hidden email]>:

>
> "Philippe Marschall" <[hidden email]> wrote in message
>
> > In general a good test is to go to:
> > /seaside/files/MyFileLibrary/styles.css
> > hit F5 in FireFox and see if what you see matches your expectations.
>
> I did this as a check, and got a consistently out-of-date version of
> styles.css, even when the method stylesCss was clearly different. Then after
> a while it suddenly righted itself.
>
> I had session timeout bumped up
> MySession>>initialize
>     super initialize.
>     self timeoutSeconds: 60 * 60.
>
> Could there be some caching going on for the duration of a session?

This is really strange because there should be no session involved,
especially not MySession.

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside