How to get the value of a javascript variable?

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

How to get the value of a javascript variable?

Joseph Blatter
Hi list. After some magic inspiration, I guessed the onLoadScripts is the right place to put a javascript function for doing something like <body onLoad="putamala()">.

onLoadScripts
   ^super onLoadScripts asOrderedCollection
                            add: 'putamala()';
                            yourself

and then defined the #script method with this:

^ 'function putamala() {
   if (doYouLikeSmalltalk)
    developer = ("cool");
  else
    if (doYouLikePython)
      developer = ("sucks");
  ....
}'

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

thanks in advace


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to get the value of a javascript variable?

Michel Bany

> 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  
requirement.
Cheers,
Michel.

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

Re: How to get the value of a javascript variable?

Joseph Blatter
In reply to this post by Joseph Blatter
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?
thanks

----- Mensaje original ----
De: Michel Bany <[hidden email]>
Para: Seaside - general discussion <[hidden email]>
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  
requirement.
Cheers,
Michel.

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


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to get the value of a javascript variable?

Michel Bany

On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:

> Can you show me a simple example code of how to use the  
> XMLHttpRequest from Javascript?

Hi Joseph,
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.
HTH
Michel


> 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?
> thanks
>



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

Re: How to get the value of a javascript variable?

Joseph Blatter
In reply to this post by Joseph Blatter
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.
With your code, WAMainComponent>>initialRequest is executed first, and a new WAResponse is sent (from WAMyMainComponentSession) with the current scripts plus the javascript call to the get browser's info function (self session refreshAfterScript: ...). I don't understand why you cannot use "aCurrentWAResponse" and attached or #nextPutAll: to there instead of creating a new response in #refreshAfterScript:. The problem is: It seems I cannot "attach" my custom WAMainComponent headings to the response (or they are attached later?), because the new WAResponse was sent before (?), resulting in my WAMainComponent class displayed without css's styling at all.

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?

Thanks

----- Mensaje original ----
De: Michel Bany <[hidden email]>
Para: Seaside - general discussion <[hidden email]>
Enviado: sábado, 7 de abril, 2007 6:40:55
Asunto: Re: [Seaside] How to get the value of a javascript variable?


On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:

> Can you show me a simple example code of how to use the  
> XMLHttpRequest from Javascript?

Hi Joseph,
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.
HTH
Michel


> 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?
> thanks
>



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


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to get the value of a javascript variable?

Michel Bany

> 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.
> With your code, WAMainComponent>>initialRequest is executed first,  
> and a new WAResponse is sent (from WAMyMainComponentSession) with  
> the current scripts plus the javascript call to the get browser's  
> info function (self session refreshAfterScript: ...). I don't  
> understand why you cannot use "aCurrentWAResponse" and attached or  
> #nextPutAll: to there instead of creating a new response in  
> #refreshAfterScript:.

Did you notice that two Seaside sessions and three requests are used  
for the handshaking?


> The problem is: It seems I cannot "attach" my custom  
> WAMainComponent headings to the response (or they are attached  
> later?), because the new WAResponse was sent before (?), resulting  
> in my WAMainComponent class displayed without css's styling at all.
>

I do not quite understand all your explanations.
You may want to post some of your code.
Michel.


> 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?
>



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

Re: How to get the value of a javascript variable?

Joseph Blatter
I've attached two files with an example of my problem. In order to work you'll need also InstanceEncoder (available from SqueakSource.com).
The first time the page is loaded, the style isn't loaded. Clicking one of the anchors above will load it. I want to load it the first time the page is displayed.

>Did you notice that two Seaside sessions and three requests are used for the handshaking?

I didn't even notice there were two Seaside sessions, nor the handshaking or why three request are needed.

Thanks and regards


Michel Bany <[hidden email]> escribió:

> 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.
> With your code, WAMainComponent>>initialRequest is executed first,
> and a new WAResponse is sent (from WAMyMainComponentSession) with
> the current scripts plus the javascript call to the get browser's
> info function (self session refreshAfterScript: ...). I don't
> understand why you cannot use "aCurrentWAResponse" and attached or
> #nextPutAll: to there instead of creating a new response in
> #refreshAfterScript:.

Did you notice that two Seaside sessions and three requests are used
for the handshaking?

> The problem is: It seems I cannot "attach" my custom
> WAMainComponent headings to the response (or they are attached
> later?), because the new WAResponse was sent before (?), resulting
> in my WAMainComponent class displayed without css's styling at all.
>

I do not quite understand all your explanations.
You may want to post some of your code.
Michel.


> 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?
>



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

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


Examples-NonWorking.st (56K) Download Attachment
WAApplication-sessionAt.st (394 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE : Re: How to get the value of a javascript variable?

Joseph Blatter
In reply to this post by Michel Bany
Hi. Last week I've sent to this list (and to Michel separately) an e-mail with two attachments containing an example with the code of this problem. Neither has appeared in the mailing list nor haven't reply from Michel.
Instead, I've received a message with: "Your message to Seaside awaits moderator approval". Should I send it again or there's a problem with attaching .st files?
thanks

Joseph

Michel Bany <[hidden email]> a écrit :

> 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.
> With your code, WAMainComponent>>initialRequest is executed first,
> and a new WAResponse is sent (from WAMyMainComponentSession) with
> the current scripts plus the javascript call to the get browser's
> info function (self session refreshAfterScript: ...). I don't
> understand why you cannot use "aCurrentWAResponse" and attached or
> #nextPutAll: to there instead of creating a new response in
> #refreshAfterScript:.

Did you notice that two Seaside sessions and three requests are used
for the handshaking?


> The problem is: It seems I cannot "attach" my custom
> WAMainComponent headings to the response (or they are attached
> later?), because the new WAResponse was sent before (?), resulting
> in my WAMainComponent class displayed without css's styling at all.
>

I do not quite understand all your explanations.
You may want to post some of your code.
Michel.


> 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?
>



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


Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How to get the value of a javascript variable?

Philippe Marschall
In reply to this post by Joseph Blatter
Hi Joseph

First of all, please stop using HTML emails, this is very annoying.

2007/4/18, Joseph Blatter <[hidden email]>:
>
> 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

For all the JavaScript hackery we have JavaScript hackery frameworks
like Scriptaculous that do XMLHttpRequest and stuff in a halfway
probable way (way more portable than if you would write it yourself,
this isn't meant offensive, that's just how it is).

> (I bet not everybody out there could make 100% liquid css
> designs ;).


You use JavaScript to make CSS designs? This sounds a bit strange.

> 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.

In 2.7 we have the new header api that should make stuff like this
easier but diffrent CSS according screen resolution doesn't sound
good.

> With your code, WAMainComponent>>initialRequest is executed first, and a new
> WAResponse is sent (from WAMyMainComponentSession) with the current scripts
> plus the javascript call to the get browser's info function (self session
> refreshAfterScript: ...). I don't understand why you cannot use
> "aCurrentWAResponse" and attached or #nextPutAll: to there instead of
> creating a new response in #refreshAfterScript:. The problem is: It seems I
> cannot "attach" my custom WAMainComponent headings to the response (or they
> are attached later?), because the new WAResponse was sent before (?),
> resulting in my WAMainComponent class displayed without css's styling at
> all.
>
> 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?

Cheers
Philippe

> Thanks
>
> ----- Mensaje original ----
> De: Michel Bany <[hidden email]>
> Para: Seaside - general discussion
> <[hidden email]>
> Enviado: sábado, 7 de abril, 2007 6:40:55
> Asunto: Re: [Seaside] How to get the value of a javascript variable?
>
>
>
> On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:
>
> > Can you show me a simple example code of how to use the
> > XMLHttpRequest from Javascript?
>
> Hi Joseph,
> 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.
> HTH
> Michel
>
>
> > 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?
> > thanks
> >
>
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
> _______________________________________________
> 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: How to get the value of a javascript variable?

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Joseph Blatter
Re: [Seaside] How to get the value of a javascript variable?

Doesn't your email client know how to show them in plain text by default? :)

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: [hidden email] <[hidden email]>
To: Seaside - general discussion <[hidden email]>
Sent: Mon Apr 23 07:23:08 2007
Subject: Re: [Seaside] How to get the value of a javascript variable?

Hi Joseph

First of all, please stop using HTML emails, this is very annoying.

2007/4/18, Joseph Blatter <[hidden email]>:
>
> 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

For all the JavaScript hackery we have JavaScript hackery frameworks
like Scriptaculous that do XMLHttpRequest and stuff in a halfway
probable way (way more portable than if you would write it yourself,
this isn't meant offensive, that's just how it is).

> (I bet not everybody out there could make 100% liquid css
> designs ;).


You use JavaScript to make CSS designs? This sounds a bit strange.

> 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.

In 2.7 we have the new header api that should make stuff like this
easier but diffrent CSS according screen resolution doesn't sound
good.

> With your code, WAMainComponent>>initialRequest is executed first, and a new
> WAResponse is sent (from WAMyMainComponentSession) with the current scripts
> plus the javascript call to the get browser's info function (self session
> refreshAfterScript: ...). I don't understand why you cannot use
> "aCurrentWAResponse" and attached or #nextPutAll: to there instead of
> creating a new response in #refreshAfterScript:. The problem is: It seems I
> cannot "attach" my custom WAMainComponent headings to the response (or they
> are attached later?), because the new WAResponse was sent before (?),
> resulting in my WAMainComponent class displayed without css's styling at
> all.
>
> 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?


Cheers
Philippe

> Thanks
>
> ----- Mensaje original ----
> De: Michel Bany <[hidden email]>
> Para: Seaside - general discussion
> <[hidden email]>
> Enviado: sábado, 7 de abril, 2007 6:40:55
> Asunto: Re: [Seaside] How to get the value of a javascript variable?
>
>
>
> On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:
>
> > Can you show me a simple example code of how to use the
> > XMLHttpRequest from Javascript?
>
> Hi Joseph,
> 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.
> HTH
> Michel
>
>
> > 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?
> > thanks
> >
>
>
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> Regístrate ya - http://correo.espanol.yahoo.com/
> _______________________________________________
> 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: How to get the value of a javascript variable?

Philippe Marschall
It does (somehow), but it still looks crappy.

Philippe


2007/4/23, Boris Popov <[hidden email]>:

>
>
>
> Doesn't your email client know how to show them in plain text by default? :)
>
>  Cheers!
>
>  -Boris
>  (Sent from a BlackBerry)
>
>
>  ----- Original Message -----
>  From: [hidden email]
> <[hidden email]>
>  To: Seaside - general discussion
> <[hidden email]>
>  Sent: Mon Apr 23 07:23:08 2007
>  Subject: Re: [Seaside] How to get the value of a javascript variable?
>
>  Hi Joseph
>
>  First of all, please stop using HTML emails, this is very annoying.
>
>  2007/4/18, Joseph Blatter <[hidden email]>:
>  >
>  > 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
>
>  For all the JavaScript hackery we have JavaScript hackery frameworks
>  like Scriptaculous that do XMLHttpRequest and stuff in a halfway
>  probable way (way more portable than if you would write it yourself,
>  this isn't meant offensive, that's just how it is).
>
>  > (I bet not everybody out there could make 100% liquid css
>  > designs ;).
>
>
>  You use JavaScript to make CSS designs? This sounds a bit strange.
>
>  > 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.
>
>  In 2.7 we have the new header api that should make stuff like this
>  easier but diffrent CSS according screen resolution doesn't sound
>  good.
>
>  > With your code, WAMainComponent>>initialRequest is executed first, and a
> new
>  > WAResponse is sent (from WAMyMainComponentSession) with the current
> scripts
>  > plus the javascript call to the get browser's info function (self session
>  > refreshAfterScript: ...). I don't understand why you cannot use
>  > "aCurrentWAResponse" and attached or #nextPutAll: to there instead of
>  > creating a new response in #refreshAfterScript:. The problem is: It seems
> I
>  > cannot "attach" my custom WAMainComponent headings to the response (or
> they
>  > are attached later?), because the new WAResponse was sent before (?),
>  > resulting in my WAMainComponent class displayed without css's styling at
>  > all.
>  >
>  > 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?
>
>
>  Cheers
>  Philippe
>
>  > Thanks
>  >
>  > ----- Mensaje original ----
>  > De: Michel Bany <[hidden email]>
>  > Para: Seaside - general discussion
>  > <[hidden email]>
>  > Enviado: sábado, 7 de abril, 2007 6:40:55
>  > Asunto: Re: [Seaside] How to get the value of a javascript variable?
>  >
>  >
>  >
>  > On 13 Apr 2007, at 19:19 , Joseph Blatter wrote:
>  >
>  > > Can you show me a simple example code of how to use the
>  > > XMLHttpRequest from Javascript?
>  >
>  > Hi Joseph,
>  > 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.
>  > HTH
>  > Michel
>  >
>  >
>  > > 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?
>  > > thanks
>  > >
>  >
>  >
>  >
>  > _______________________________________________
>  > Seaside mailing list
>  > [hidden email]
>  >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>  >
>  >
>  > __________________________________________________
>  > Correo Yahoo!
>  > Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
>  > Regístrate ya - http://correo.espanol.yahoo.com/
>  > _______________________________________________
>  > 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
>
>

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

Re: RE : Re: How to get the value of a javascript variable?

Michel Bany
In reply to this post by Joseph Blatter


> Hi. Last week I've sent to this list (and to Michel separately) an  
> e-mail with two attachments containing an example with the code of  
> this problem. Neither has appeared in the mailing list nor haven't  
> reply from Michel.
>

Here is another attempt.
ftp://ftp.bany.fr/seaside/GetBrowserInfo-mb.2.mcz

This is not the best possible solution, however I must confess that I  
do not know how to fire a Seaside callback from a javascript before  
any rendering occurs.

HTH
Michel.







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

RE : Re: How to get the value of a javascript variable?

Joseph Blatter
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Ask yahoo.com, I'm using the web based interface (with default settings).
:)

Joseph
(Sent from a crappy PC with Firefox)

Boris Popov <[hidden email]> a écrit :
Re: [Seaside] How to get the value of a javascript variable?
Doesn't your email client know how to show them in plain text by default? :)

Cheers!

-Boris
(Sent from a BlackBerry)



Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside