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