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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...