<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>&gt; From: renggli@gmail.com<br>&gt; Date: Sat, 3 Apr 2010 09:44:14 +0200<br>&gt; Subject: Re: [Seaside] Image Zoomer: How to capture mouseOver X &amp; Y<br>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; <br>&gt; &gt; What I'd like to do is get the position of the mouse<br>&gt; &gt; (http://docs.jquery.com/Types/Event#event.pageX.2FY) and send the value to<br>&gt; &gt; an ajax callback like below:<br>&gt; &gt;<br>&gt; &gt; ...<br>&gt; &gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; onClick: (html jQuery ajax<br>&gt; &gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [:v | self session mousePosTop: v ] value: 'y val';<br>&gt; &gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [:v | self session mousePosLeft: v ] value: 'x val'<br>&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<br>&gt; &gt; ...<br>&gt; <br>&gt; That would be:<br>&gt; <br>&gt;       callback: [:v | self session mousePosTop: v ] value: 'argument[0].pageX';<br>&gt;       callback: [:v | self session mousePosLeft: v ] value: 'argument[0].pageY'<br>&gt; <br>&gt; 'argument[0]' is the event object passed into the event handler.<br>&gt; 'pageX' is the attribute as given in the JQuery documentation.<br>&gt; <br>&gt; Currently the JQuery event object is not reified in Smalltalk, that's<br>&gt; why you need to use these Javascript strings. I guess that should (and<br>&gt; could easily) be changed. Can you create an issue in the bug-tracker?<br>&gt; <br>&gt; Alternatively you can serialize the complete event object, this<br>&gt; requires that you add the JSJsonDevelopmentLibrary though:<br>&gt; <br>&gt;       callback: [ :v | v inspect ] json: 'argument[0]'<br>&gt; <br>&gt; Lukas<br>&gt; <br>&gt; -- <br>&gt; Lukas Renggli<br>&gt; www.lukas-renggli.ch<br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; 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>