19 Aug 2013 7:49 PM #1
Scrolling to a text in the html of a panel
I have a panel with about 2800 characters in the html property where I searchfor a user defined string.
I want to make the panel scroll to the section where the string is found.
I know you can scroll like this:
My problem is getting the second parameter, the Y position where the string was found.
Thanks in advance!
21 Aug 2013 9:26 AM #2
21 Aug 2013 2:03 PM #3
I guess I was too tired yesterday because after trying the same thing today it worked!
wrap the text with an id: <b id="result">result</b>
scroll to the text like this:
22 Aug 2013 10:04 AM #4
23 Aug 2013 7:40 AM #5