josephblatter62 at yahoo.com
Wed Apr 18 07:35:34 UTC 2007
Hi Michel. Your example works great, thanks for your help on this, I *really* think that should be added to the main Seaside package because it's very usefull (I bet not everybody out there could make 100% liquid css designs ;).
I have some problem integrating this into my application. I've customized the #updateRoot: in my WAMainComponent. From there I add headings ((WAHtmlElement named: 'link') ... attributeAt: 'rel' put: 'stylesheet';) for multiple css's scripts according to the resolution found from your code.
However, to verify this, I've included some anchors inside WAMainComponent to change the css's dynamically. Reloaded the page, the content is there but "raw" (no style applied), clicked the anchor and....and it worked fine, the style was applied. I deduced the headings are sent, but somewhat after the browser info things...since the respond: method seems a little bit complicated to me, I ask again, is there a way to fix this behavior so the proper headings are included and then the component is showed for the right resolution?
----- Mensaje original ----
De: Michel Bany <michel.bany at gmail.com>
Para: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Enviado: sábado, 7 de abril, 2007 6:40:55
On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:
> Can you show me a simple example code of how to use the
I posted an example at ftp://ftp.bany.fr/seaside/GetBrowserInfo-mb.1.mcz
The example explicitely supports IE, Mozilla and Safari. May work
with other browsers.
> I just want to detect the screen resolution of the clients to set
> the right css configuration (from multiple css's). How to get this
> value from XMLHttpRequest from Smalltalk?
Seaside mailing list
Seaside at lists.squeakfoundation.org
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Seaside