[Seaside] Retrieving values using JavaScript

Mart-Mari Breedt breedt_m at aircom.co.za
Wed Oct 5 05:02:08 UTC 2005


Hallo all,

Say I have a piece of JavaScript that returns a value (i.e. Something I
would normally be able to display in alert box). 

Example: "document.getElementById('cmp1').style.width"

How can I get and store this value in a Squeak variable? 

Ideally (Or should I say VERY optimistically) I would like to do
something like this (in a subclass of WAComponent)

widthOf: componentName

	^ executeJavaScript: 'document.getElementById(''' ,
componentName , ''').style.width'
 
Thank you,

Mart-Mari




More information about the Seaside mailing list