Jump to content

UniURLFrame Scroll Oversized Content By Code - How ?


andyhill

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...