[Seaside] Dynamic CSS

Peter Osburg peter.osburg at gmail.com
Thu Dec 4 22:20:31 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hey Frank,

Maybe you want to take a look at this:
http://peter-osburg.ehstpro.de/2008/11/13/changing-css-during-run-time-of-your-web-application/

In this case I created a solution where I use a file library to store
my css files and to change them dynamically. Maybe it can help you
finding a solution for your case.

Maybe you can also consider using the css keyword @import for
dynamically changing the content:
http://webdesign.about.com/cs/css/qt/tipcssatimport.htm

Hope that helps.

Regards,
Peter

Squeaker schrieb:
> Greetings,
>
> My application has a number of components subclassed from
> WAComponent,e.g., VeHeader, VeFooter, VeArtist, VeArtifact etc.
>
> The html pages that I dynamically produce can contain any subset of
> my "VeComponents" (the things I subclassed from WAComponent).  My
> question concerns the creation of the css for my dynamically
> produced html pages.
>
> Because I create the html page contents on the fly, I have no way of
> knowing which of my VeComponents will be include on an html page. My
> solution creates a style sheet that consists of the styling for ALL
> possible VeComponents and its contained components.  The resulting
> style sheet is quite large.
>
> Many times there is only one VeComponent on the page yet I have this
> massive style sheet to handle the set of all possible VeComponents.
>
> There has to be a better way.  I was using the #style  method for
> each of my VeComponents but I have learned from this forum that this
> is not a good solution and performance will not be good.
>
> I think this all boils down to one question: Is there a way to
> generate a dynamic css that would not degrade performance?
>
> Thanks,
> Frank
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iEYEARECAAYFAkk4V64ACgkQ0qdvZsCNFKFecwCeLUbXWYMzc3C8swa+BL2FHlDJ
qr4An2QdVWsxiSyZ7FUA50qKXVT+4dPi
=7yDB
-----END PGP SIGNATURE-----



More information about the seaside mailing list