-
18 Sep 2009 10:43 PM #1
Unanswered: Browser Window Scroll Event
Unanswered: Browser Window Scroll Event
I'm new to ext and I'm wondering if there is a cross-browser way of getting the scroll event when the browser window is scrolled.
I want to implement a static/fixed panel on our site, but position: fixed is not working on all browsers. Also the div should be scrolled untill it reaches the top of the viewing area and then become fixed/static. Something exactly like extjs.com had on the seminar registration page. That page is not live anymore, so I can't look at it for an example.
Thank you for your time and help
-
19 Sep 2009 3:16 AM #2Sencha - Ext JS Dev Team
- Join Date
- Mar 2007
- Location
- Notts/Redwood City
- Posts
- 30,458
- Vote Rating
- 20
- Answers
- 9
Code:Ext.fly(document).on("scroll", function(){console.log("body scrolled");});Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
25 Oct 2009 8:52 AM #3
-
29 Oct 2009 4:16 AM #4Sencha - Ext JS Dev Team
- Join Date
- Mar 2007
- Location
- Notts/Redwood City
- Posts
- 30,458
- Vote Rating
- 20
- Answers
- 9
OK, so IE doesn't fire document scroll? Still, do it right. Don't use inline listeners.
Code:Ext.fly(window).on("scroll", function(){console.log("Window scrolled");})Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642


Reply With Quote