HTML_Area detect scrolling

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

HTML_Area detect scrolling

Postby Janssenjos » Mon Nov 22, 2010 12:15 pm

Hi,

In my web-client I have a html_area, which i populate with table data like this:

Code: Select all
<html>
  <body>
    <table>
         rowsdata .....
    </table>
  </body>
</html>


Cause there is a lot of data, a scrollbar appears. Now when the user scrolls I want to be able to detect that. (When he reached the end I need to do something)
Is there any way to do this? (detect the scroll event of the html_area??)

Thanks.
Jos Janssen
Software Developer
Axerrio
http://www.axerrio.com
Janssenjos
 
Posts: 148
Joined: Thu Aug 13, 2009 3:55 pm
Location: Bergen op Zoom

Re: HTML_Area detect scrolling

Postby Janssenjos » Wed Nov 24, 2010 12:37 pm

Solved the problem.

Looked up the id that servoy gave to the div, and used this to add an onscroll event to the div.
Jos Janssen
Software Developer
Axerrio
http://www.axerrio.com
Janssenjos
 
Posts: 148
Joined: Thu Aug 13, 2009 3:55 pm
Location: Bergen op Zoom

Re: HTML_Area detect scrolling

Postby mboegem » Wed Nov 24, 2010 3:19 pm

Janssenjos wrote:Looked up the id that servoy gave to the div, and used this to add an onscroll event to the div.


This will probably be the UUID of the element.
So be careful: if - for whatever reason - you delete the existing element and add a new element, your code will break...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1749
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam


Return to Web Development

Who is online

Users browsing this forum: No registered users and 9 guests