Jump to content

UrlFrame Scroll In Code At Runtime - How ?


andyhill

Recommended Posts

I have a UrlFrame that is loaded at runtime.

In code I want to scroll the contents at runtime, scaling in code works fine, how do I scroll contents in code ? 

    //URLFrame.JSInterface.JSCall('el.setStyle', ['transform', 'scale(0.5)']); // WORKS
   
    URLFrame.JSInterface.JSCall('el.setStyle', ['transform', 'scroll(1, 500)']); // FAILS

    UniSession.AddJS(URLFrame.JSName + '.getTargetEl().scrollBy(1, 500, false);'); // FAILS

Please advise - Thanks in advance

Link to comment
Share on other sites

  • 1 year 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...