[Seaside] How to get the value of a javascript variable?

Joseph Blatter josephblatter62 at yahoo.com
Fri Apr 13 17:19:37 UTC 2007

Can you show me a simple example code of how to use the XMLHttpRequest from Javascript? 
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?

----- Mensaje original ----
De: Michel Bany <michel.bany at gmail.com>
Para: Seaside - general discussion <seaside at lists.squeakfoundation.org>
Enviado: viernes, 6 de abril, 2007 13:17:38
Asunto: Re: [Seaside] How to get the value of a javascript variable?

> How can I get the value of "developer" variable from Smalltalk?

Hi Joseph,
You'll have to send a request using XMLHttpRequest from your javascript.
However, there will be many different solutions depending on your  
actual need,
and your example does not tell what exactly you want to do in  
Smalltalk with the
value of the variable. Can you provide more details about your  

Seaside mailing list
Seaside at lists.squeakfoundation.org

Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070413/53b7be29/attachment.htm

More information about the Seaside mailing list