bind onScroll event with Ajax call to body tag

Sabine Manaa <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi,

til now, I was adding an onScroll event (with an Ajax call) to a part of my
layout like this here:

html mdlLayoutContent
  onScroll: (html jQuery ajax script: [ :s | 
	...do something with my model so I don't want use pure javascript... ]);
with: aBlock.

This worked fine.

But now I have to change this and I have to put the onScroll event to the
body tag:

I know that I could in updateRoot do this:
	aHtmlRoot  bodyAttributes at: 'onScroll' put: 'alert(''D'')'.

But I have to make an Ajax call (getting next domain objects to show).

So my question is how can can I put an Ajax call to body onScroll that the
result is similar to this:

<body  onscroll="if( do some js
check){$.ajax({&quot;dataType&quot;:&quot;script&quot;,&quot;url&quot;:&quot;/RKA&quot;,&quot;data&quot;:[&quot;_s=KFxTxw2Prts-ZMLU&quot;,&quot;_k=Zp8eG2nIxTNYJAlE&quot;,&quot;37&quot;].join(&quot;&amp;&quot;)})}">

I would be very happy for a hint...
Sabine




--
View this message in context: http://forum.world.st/bind-onScroll-event-with-Ajax-call-to-body-tag-tp4940510.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.