[Project_owners] How to obtain the scrollbar positions of a webpage?

Kai Henning kai.henning at informatik.uni-essen.de
Mon Aug 2 19:09:51 EDT 2004


Derek Gilby wrote:

> Hey all How are ya?
> Im wondering, is there an archive of this mail lists?  I'm developing 
> a technology, based on this engine,  awesome stuff.  I see alot of 
> these questions, and answers I can use, is there an archive of the 
> emails?  or should I save these emails for later use 

http://mozdev.org/pipermail/project_owners/
Good luck,
Kai

> Deke
> Nastural Resource Management Technologies
> www.nrmtechnologies.ca
> GeoBrowser
>
> Neil wrote:
>
>> Jaap Haitsma wrote:
>>
>>> curScrollX = tab.contentWindow.scrollX;
>>> curScrollY = tab.contentWindow.scrollY;
>>> //Let's say the position is curScrollX=100, curScrollY=100
>>>
>>> tab.webNavigation.loadURI(tab.reloadEveryURL, loadFlags, null, 
>>> entry.postData, null);
>>> // This loads a page and we see the top of that page.
>>>
>>> log(tab.contentWindow.scrollX + ',' +tab.contentWindow.scrollY);
>>> // Still prints (100,100). I would expect (0,0)
>>> log(curScrollX + ',' +curScrollY);
>>> // Prints of course (100,100)
>>> tab.contentWindow.scrollTo(curScrollX, curScrollY);
>>> // Does not seem to scroll the window. Nothing happens
>>> log(tab.contentWindow.scrollX + ',' +tab.contentWindow.scrollY);
>>> // Still prints (100,100)
>>>
>>> What's going wrong here?? I don't get it
>>
>>
>>
>> Are you waiting for the page to load?
>> _______________________________________________
>> Project_owners mailing list
>> Project_owners at mozdev.org
>> http://mozdev.org/mailman/listinfo/project_owners
>

-- 

Visit and test the Mozilla-EVM-Project: http://evm.mozdev.org/

for
- moving Mozilla mails to a DB,
- putting one mail into several categories (instead of folders)
  and just saving it once,
- having a nice user interface for answering, forwarding, etc Mails.

For support, bugreports or questions: contact evm at s3.uni-essen.de

Visit and test the Mozilla-EVM-Project: http://evm.mozdev.org/




More information about the Project_owners mailing list