<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Evidently something isn't working right, cuz all I get back is the string I'm passing in, as if the javascript isn't being evaluated. I tried 'arguments[0]' as well as a couple other things, too.<br><br>I tried binding this function to a click event in a script, which yielded the same results.<br><br>I also wasn't able to get the little json example to work.<br><br>I have JQ develop deploy, UI develop deploy, JSON develop deploy, CT, and a theme loaded.<br><br>Thanks again heh<br>RS<br><br>> From: renggli@gmail.com<br>> Date: Sat, 3 Apr 2010 09:44:14 +0200<br>> Subject: Re: [Seaside] Image Zoomer: How to capture mouseOver X & Y<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> > What I'd like to do is get the position of the mouse<br>> > (http://docs.jquery.com/Types/Event#event.pageX.2FY) and send the value to<br>> > an ajax callback like below:<br>> ><br>> > ...<br>> > onClick: (html jQuery ajax<br>> > callback: [:v | self session mousePosTop: v ] value: 'y val';<br>> > callback: [:v | self session mousePosLeft: v ] value: 'x val'<br>> > );<br>> > ...<br>> <br>> That would be:<br>> <br>> callback: [:v | self session mousePosTop: v ] value: 'argument[0].pageX';<br>> callback: [:v | self session mousePosLeft: v ] value: 'argument[0].pageY'<br>> <br>> 'argument[0]' is the event object passed into the event handler.<br>> 'pageX' is the attribute as given in the JQuery documentation.<br>> <br>> Currently the JQuery event object is not reified in Smalltalk, that's<br>> why you need to use these Javascript strings. I guess that should (and<br>> could easily) be changed. Can you create an issue in the bug-tracker?<br>> <br>> Alternatively you can serialize the complete event object, this<br>> requires that you add the JSJsonDevelopmentLibrary though:<br>> <br>> callback: [ :v | v inspect ] json: 'argument[0]'<br>> <br>> Lukas<br>> <br>> -- <br>> Lukas Renggli<br>> www.lukas-renggli.ch<br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            <br /><hr />The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5' target='_new'>Get busy.</a></body>
</html>