views:

34

answers:

2

Hello friends,

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 minor problem. Pl. guide me.

A: 

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

Anil Namde
A: 

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.

Jonathan Czitkovics
mindfreak