andyhill Posted October 19, 2022 Posted October 19, 2022 I have oversized content displayed within a UniURLFrame (complete with both Horizontal & Vertical Scrollbars displayed and working as expected). Please advise how I can scroll the displayed content within the UniURLFrame via code at runtime ? //UniURLFrame1.SetXY(1, 1500, nil); // FAILS RENDERS BLANK //UniURLFrame1.JSInterface.JSCall('iframe.contentDocument.scrollingElement.scrollBy', [1, 1500, False]); // FAILS NOTHING HAPPENS //UniURLFrame1.JSInterface.JSCall('iframe.contentDocument.scrollingElement.scrollTo(1, 1500)'); // FAILS NOT A FUNCTION //UniURLFrame1.JSInterface.JSCall('iframe.contentDocument.scrollingElement.scrollTop = 1500'); // FAILS NOT A FUNCTION //UniURLFrame1.JSInterface.JSCall('iframe.contentWindow.document.scrollingElement.scrollTo', ['top', 1500]); // FAILS NOTHING HAPPENS //UniURLFrame1.JSInterface.JSCall('iframe.contentWindow.scroll(1, 1500)'); // FAILS NOT A FUNCTION Quote
Sherzod Posted October 20, 2022 Posted October 20, 2022 8 hours ago, andyhill said: I have oversized content displayed within a UniURLFrame (complete with both Horizontal & Vertical Scrollbars displayed and working as expected). Please advise how I can scroll the displayed content within the UniURLFrame via code at runtime ? Hello, What kind of content are you showing there, HTML? Quote
andyhill Posted October 20, 2022 Author Posted October 20, 2022 I have a UniMap(Leaflet) rendered inside a UniURLFrame, the scrollbars belong to the UniURLFrame and scroll the oversized map canvas correctly by mouse interaction, I want to do the scrolling by manipulating the scrollbars via code. Quote
Sherzod Posted October 20, 2022 Posted October 20, 2022 2 minutes ago, andyhill said: I have a UniMap(Leaflet) rendered inside a UniURLFrame, the scrollbars belong to the UniURLFrame and scroll the oversized map canvas correctly by mouse interaction, I want to do the scrolling by manipulating the scrollbars via code. Do you have an online project where we can check? Quote
andyhill Posted October 20, 2022 Author Posted October 20, 2022 Sent to you Sherzod via private message. Quote
Sherzod Posted March 23, 2023 Posted March 23, 2023 1 hour ago, SISBLU Software said: Did anyone get it? Hello, Specifically, what is your case? Quote
SISBLU Software Posted March 23, 2023 Posted March 23, 2023 UniURLFrame1.ScrollBy(0,500); NO Work. 1 - I need to make the scroll bar INVISIBLE. 2 - I need to move the scroll bar to a certain line on the SITE Quote
Sherzod Posted March 23, 2023 Posted March 23, 2023 47 minutes ago, SISBLU Software said: UniURLFrame1 What do you show in the frame? External source? Quote
Sherzod Posted March 23, 2023 Posted March 23, 2023 Could you make a simple testcase to check !? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.