[Seaside] Read two values ( width @ height ) with only one declaration

Bob Arning arning315 at comcast.net
Sat Jan 4 17:10:39 UTC 2014


I use this in an onClick:

html jQuery ajax
         callback: [ :value |
             p _ value findTokens: ' '.
             p _ p first asNumber @ p second asNumber.
         ]
         value: (JSStream on: 'arguments[0].pageX+" "+arguments[0].pageY')

Cheers,
Bob

On 1/4/14 11:03 AM, dtrussardi at tiscali.it wrote:
> Hi,
>
> 	i need to read two parameters  ( width @ height )  relative to  a DIV element.
>
> 	For now i use this declarations:
> 	
> 		
> 		html div class: 'topSide';
> 			" read width "	
> 				onClick: (html jQuery ajax
>     							   callback: [ :x | x inspect ]
>      							   value:  (html jQuery this width)).
> 	
> 			"raed height "
> 				onClick: (html jQuery ajax
>     							   callback: [ :x | x inspect ]
>      							   value:  (html jQuery this height)).
>
>
> 	Now my question is:
>
> 		i can read the two values with only one declaration?
>
> 		How i can define the 		value: ( html jQuery this width................ '@' ............... html jQuery this height )
>
>
> 			 for concatenated  the two values and return a string in form of string Point:	'200 at 400'
>
> 	
> 		I declared :   		value: ( html jQuery this width, '@' , html jQuery this height )
>
> 			but it don't work.
>
> 	Considerations?
>
>
> 		Thanks,
>
> 			Dario_______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140104/5e212a3e/attachment.htm


More information about the seaside mailing list