[Seaside] Image Zoomer: How to capture mouseOver X & Y
watchlala at hotmail.com
Sat Apr 3 14:27:49 UTC 2010
I tried binding this function to a click event in a script, which yielded the same results.
I also wasn't able to get the little json example to work.
I have JQ develop deploy, UI develop deploy, JSON develop deploy, CT, and a theme loaded.
Thanks again heh
> From: renggli at gmail.com
> Date: Sat, 3 Apr 2010 09:44:14 +0200
> Subject: Re: [Seaside] Image Zoomer: How to capture mouseOver X & Y
> To: seaside at lists.squeakfoundation.org
> > What I'd like to do is get the position of the mouse
> > (http://docs.jquery.com/Types/Event#event.pageX.2FY) and send the value to
> > an ajax callback like below:
> > ...
> > onClick: (html jQuery ajax
> > callback: [:v | self session mousePosTop: v ] value: 'y val';
> > callback: [:v | self session mousePosLeft: v ] value: 'x val'
> > );
> > ...
> That would be:
> callback: [:v | self session mousePosTop: v ] value: 'argument.pageX';
> callback: [:v | self session mousePosLeft: v ] value: 'argument.pageY'
> 'argument' is the event object passed into the event handler.
> 'pageX' is the attribute as given in the JQuery documentation.
> Currently the JQuery event object is not reified in Smalltalk, that's
> could easily) be changed. Can you create an issue in the bug-tracker?
> Alternatively you can serialize the complete event object, this
> requires that you add the JSJsonDevelopmentLibrary though:
> callback: [ :v | v inspect ] json: 'argument'
> Lukas Renggli
> seaside mailing list
> seaside at lists.squeakfoundation.org
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside