Jump to content

Scrolling in TUniURLFrame


steve589

Recommended Posts

Yes, this works from outside the frame!

 

From inside the frame it would be (added to the HTML at UniForm.Create):

'    parent.' + UniURLFrame1.JSName + '.iframe.contentWindow.document.scrollingElement.scrollTop = 0;'
or
'    parent.' + UniURLFrame1.JSName + '.iframe.contentWindow.document.scrollingElement.scrollTop = elTo.offsetParent';'
where elTo is the element to scroll to.
 
with javascript from outside the frame (f.i. from Ext ClientEvent, added to the ClientEvent at UniForm.Create):
'   var elTo = ' + UniURLFrame1.JSName + '.iframe.contentWindow.document.getElementById("some_ID");' +
'   if (elTo) {' +
'      UniURLFrame1.JSName + '.iframe.contentWindow.document.scrollingElement.scrollTop = elTo.offsetTop;' +
'   }'
 
Excellent support!

Thanks a lot!

Steve

Link to comment
Share on other sites

  • 5 years later...
  • 4 months later...

Hi. I am having problems with TUniURLFrame component, it stays inaccessible or "read only" when clicking over a scroll bar or lugging it, more frequently when crSize cursor is showed over the scroll bar, then the application showed into the frame stay inaccesible. How can fix it?
My version is 1.50.0.1482
 

Link to comment
Share on other sites

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...