Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82420

Javascript not triggering

$
0
0

Hi all,

I have a simple piece javascript code to keep the scroll bar of a container in the down position when you view it (because default is in the up position):

var x = document.getElementsByClassName("dataViewConversation")[0];
 x.scrollTop = x.scrollHeight;
 

Problem is that when I use either the HTML snippet or JavaScript Snippet available in the app store the js does not trigger on view, but I know it works because I tried it with the javascript button to manually trigger and it works fine. Any ideas?


Viewing all articles
Browse latest Browse all 82420

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>