Javascript document.ready not always working, iscroll?

$(document).ready() should not be called the way you have it after the first call $(document).ready. AddEventListener Also it looks like the third call to it is trying to overwrite it Try doing the following var myScroll; $(document). Ready(function { myScroll = new iScroll('wrapper'); document.

AddEventListener('touchmove', function (e) { e.preventDefault(); }, false); }).

$(document).ready(); should not be called the way you have it after the first call. $(document).ready. AddEventListener Also it looks like the third call to it is trying to overwrite it.

Try doing the following. Var myScroll; $(document). Ready(function { myScroll = new iScroll('wrapper'); document.

AddEventListener('touchmove', function (e) { e.preventDefault(); }, false); }).

Thanks for the reply, but we have tried all of these variations above and none our fixing the problem. It seems to be loading incorrectly about 1/5 times. What happens is that iScroll just stops working because the page loads to slow.

– Hans Mar 23 at 11:03.

Ready is a method that takes a function as parameter and executes it when the document is ..well ready. So you should : $(document). Ready(function(){ //do stuff here }).

Is the solution we came up with for all people using iScroll and in the same situation.

App using iScroll for scrolling. The problem is that the iScroll scroller sometimes has problems working when the page loads at first. This is the code, we added (document).

Ready to solve the problem, and it is doing it so mostly, but once in a while it doesn't seem to work. Our guess is that the scroller isn't working when the height of the wrapper (scrollable area) loads to slow, that's why we added the document. Ready with the results stated as above.

We'd appreciate some help!

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