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

Joseph Blatter josephblatter62 at yahoo.com
Mon Apr 23 13:56:49 UTC 2007


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 <michel.bany at gmail.com> 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
Seaside at lists.squeakfoundation.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070423/d6901361/attachment.htm


More information about the seaside mailing list