Re: How to tell if the page displayed in the Browser widget has scrolled

2018-11-08 Thread Tom Glod via use-livecode
Hermann you are a rockstar. I will use this method also. Thank you. On Thu, Nov 8, 2018 at 10:55 AM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > James. > > You are looking for difficulties that are not present. > > A. Do once: > > A1. put into widget's or card's script >

Re: How to tell if the page displayed in the Browser widget has scrolled

2018-11-08 Thread hh via use-livecode
James. You are looking for difficulties that are not present. A. Do once: A1. put into widget's or card's script (this is a javaScriptHandler): on jsNotify v put the seconds &": "& v into fld "info" -- or your action end jsNotify A2. From a button or msg (or use the property inspector):

Re: How to tell if the page displayed in the Browser widget has scrolled

2018-11-08 Thread James Hale via use-livecode
Many thanks Hermann. I can follow this (logic wise) as well as the forum links you provided. But I didn't quite follow the implementation. For now I will put it on the "it would be nice but not required" list, else I will not finish. And yes, I will ask on the forum should I have a potentially

Re: How to tell if the page displayed in the Browser widget has scrolled

2018-11-08 Thread hh via use-livecode
The following works for me. Write this code into a variable or a field: window.onscroll = function() { if (window.innerHeight + window.pageYOffset >= document.body.offsetHeight) liveCode.jsNotify('I am at the bottom'); }; (a) Then script: do in widget "browser" if you can't control the

How to tell if the page displayed in the Browser widget has scrolled

2018-11-07 Thread James Hale via use-livecode
Is there a way (are you there Hermann?) of telling if a page being displayed in a browser widget has been scrolled down at all. It doesn't seem there are any widget properties for this. Hermann's solution to changing the font size was I think in effect injecting a javascript function/setting