开发者

Scrolling in Webview Progmatically

开发者 https://www.devze.com 2022-12-24 17:27 出处:网络
I am having a webview which dispalys large amounbt of data. I want to scroll Webview progmatically. I know window.scrollto() method is there but ,god knows why, it is not working. Can anybody guide me

I am having a webview which dispalys large amounbt of data. I want to scroll Webview progmatically. I know window.scrollto() method is there but ,god knows why, it is not working. Can anybody guide me step by step how to do this ? I am sure there is some mino开发者_开发知识库r problem. Pl. guide me.


simplest possible way i am aware about is adding url?param=value#id technique. I am not sure is you are looking for this but it works nicely. This is called fragment identifier


I think that you may have a syntax error. Its element.scrollTo(x-coord, y-coord) :)

Sample code would be useful if you have some for us.

Is it the actual window that has a scroll or is it some element inside the window that has a scroll.

You should try to alert your x-coord and y-coord just before you call scrollTo() to see if there are actual values there.

0

精彩评论

暂无评论...
验证码 换一张
取 消