Why is the jQuery scroll event fired when inserting new content into a div with overflow set to scroll?

You don't need any workarounds like the above states. The reason this doesn't work is beacuse of how you've created your layout. When you're inserting "jau", you're removing the 800px div that it is wrapped in.

The effect of this is that when you replace it with just text, the div is no longer there, and it resets the height of the container. This causes the scroll bar to disappear, which invokes the 'scroll' method.

It fires (correctly) because the scroll position changes from 100 to 0.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions