Check out the verticalScrollPosition property on the various containers and controls.

 


From: [email protected] [mailto:[email protected]] On Behalf Of andrewstuartblah
Sent: Saturday, October 21, 2006 9:14 PM
To: [email protected]
Subject: [flexcoders] How to programmatically scroll back to top of page?

 

Hello

We have a long form and the user must scroll down to fill out all the
fields. When they hit submit, error/validation messages are displayed
at the top of the page and the user must correct invalid fields.

The problem is though that after hitting submit the display remains
stuck at the bottom of the page, and the errors messages are at the
top of the page and the users will not see them.

Is there any way in Flex to scroll page to the top of the page?

When programming a browser it is possible to use scrollintoview, which
does just the sort of thing that I am after. Does Flex have an
equivalent?
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/scrollintoview.asp
scrollintoview - scrolls to an element on an HTML page

Or is there some other way to achieve this goal?

Thanks

Andrew Blah

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to