<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> onClick: (<br> html jQuery ajax<br> callback: [:value | self session mousePosTop: value] value: (JSStream on: 'arguments[0].pageY');<br> callback: [:value | self session mousePosLeft: value] value: (JSStream on: 'arguments[0].pageX')<br> );<br><br>Thanks!<br>RS<br><br>> From: renggli@gmail.com<br>> Date: Sat, 3 Apr 2010 18:22:16 +0200<br>> Subject: Re: [Seaside] Image Zoomer: How to capture mouseOver X & Y<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> You are probably on an old version of Seaside. Try to put the string into<br>> <br>> JSStream on: 'your string'<br>> <br>> Lukas<br>> <br>> On 3 April 2010 16:27, Robert Sirois <watchlala@hotmail.com> wrote:<br>> > Evidently something isn't working right, cuz all I get back is the string<br>> > I'm passing in, as if the javascript isn't being evaluated. I tried<br>> > '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<br>> > 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<br>> > 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<br>> >> > to<br>> >> > an ajax callback like below:<br>> >> ><br>> >> > ...<br>> >> > onClick: (html jQuery ajax<br>> >> > callback: [:v | self session mousePosTop: v ] value: 'y<br>> >> > val';<br>> >> > callback: [:v | self session mousePosLeft: v ] value: 'x<br>> >> > 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>> > ________________________________<br>> > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with<br>> > Hotmail. Get busy.<br>> > _______________________________________________<br>> > seaside mailing list<br>> > seaside@lists.squeakfoundation.org<br>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> ><br>> ><br>> <br>> <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 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>