Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GoFish doesn't scroll to matching line
Message
From
30/01/2023 13:23:29
 
 
To
30/01/2023 07:56:22
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01685788
Message ID:
01686015
Views:
27
>>>Does not work with me.
>>>
>>>The example fails with a type conflict. Looking it up
>>> MatchDiv.scrollIntoView({block:"center"});
>>>fails.
>>>https://www.w3schools.com/jsref/met_element_scrollintoview.asp says parameter is just bool., so {block:"center"} is the culprit.
>>>
>>>It works with the boolean, but this is not the goal
>>>
>>>scrollIntoView can just top or bottom according to this page.
>>
>>Here's where I got the parameters and this parameter works perfectly for me when I view the modified HTML file:
>>
>>https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
>>
>>It occurs to me that we're using the WebBrowser control and it may not support this parameter, since it's old. The page I linked there links to this one:
>>
>>https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded
>>
>>I wonder if that would work in the WebBrowser control. The compatibility charts don't include IE and the notes say this one is non-standard, but if it works in the control, who cares?
>
>Controlling a Browser is a fast moving target. IIRC the old Trident engine basis (which WebBrowser called via 2 activeX interface typelibs) is not even installed with newer Windows, as MS created another compatibility layer working with Chromium based Edge for legacy apps. Then you have to link instructions how to enable this on new windows ;-)
>

In this case, we're talking about the browser control inside GoFish. Unless someone is going to do a lot of work to replace it with something newer, we're just stuck with the version we have. So, if the code works there, it should be fine for this purpose.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform