JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Què passa si l'animació jQuery no es dispara / inici?
Posted on 19. Publicat a 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Juny de 2009, per Dragos a la codificació, JavaScript i Ajax
I've been working on an image gallery (that I will publish here for all to see and use) and I ran into an issue that I've never experienced before: jQuery stopped firing the animation of an object. He estat treballant en una galeria d'imatges (que vaig a publicar aquí perquè tothom pugui veure i utilitzar) i em vaig trobar amb un tema que mai he experimentat abans: jQuery va deixar de disparar l'animació d'un objecte. I looked at the expression, everything was fine. Vaig mirar a l'expressió, tot estava bé. However not the expression was the problem, but the variables I passed to the animation. No obstant això l'expressió va ser el problema, però les variables que va passar a l'animació. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Per alguna raó, una variable passada el valor 'undefined', que era el problema que obstaculitzar el codi s'executi sense problemes.
So if you ever experience the same problem about jQuery's animation, check and make sure that the values you pass to the animation function are correct. Així que si alguna vegada el mateix problema sobre l'animació jQuery, el control i assegurar-se que els valors que passen a la funció d'animació són correctes.
Related posts: Llocs relacionats amb:
- JavaScript: GIFless animation. JavaScript: animació GIFless. Animate images,logos with jQuery Imatges animades, logos amb jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Com obtenir l'índex (posició dins d'un grup) d'un objecte amb jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: Com validar l'adreça de correu electrònic amb JavaScript?
- JavaScript: Get anchor from URL JavaScript: Obtenir l'àncora de l'URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Enviar funcionar com un paràmetre a una altra funció (callbacks)












































