how to scroll to a specific point on a page(form)


Userlevel 5
Badge +16

Hi Everybody,

 

I'm going to show you how to scroll to a specific point  on a form:

 

Let's assume I have a form with many views and I want  to scroll to a specific view:

 

1- Drag Hyperling or button and give it Tooltip property UserInfo

 

16965iFE128468527833C2.png

 

3- Add expression to the datalable with the following  code

 

<script type="text/javascript">
$(document).ready(function()
{
$("[title='UserInfo']").click(function()
{
$('html,body').animate({ scrollTop: $("[title='User Info Position']").offset().top + 10 }, 1000); return false;
}); })
</script>

Now when you click on the hyperlink it will scroll to the datalable position which is above the view we want to reach 

 

wish its useful

 

 


0 replies

Be the first to reply!

Reply