JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Co když jQuery animace není oheň / start?
Posted on 19. Publikováno před: dne 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Června 2009 od Dragos v Kódování, JavaScript & 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. Pracoval jsem na fotogalerie (že budu zde publikovat všem na očích a použití) a já jsem narazil na problém, který jsem ještě nikdy nezažili: jQuery přestal střílet animace objektu. I looked at the expression, everything was fine. Podíval jsem se na výraz, všechno bylo v pořádku. However not the expression was the problem, but the variables I passed to the animation. Však není výraz byl problém, ale proměnné jsem přešel na animaci. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Z nějakého důvodu proměnnou prošel hodnoty 'undefined', což byl problém, který brání svůj kód z hladkého chodu.
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. Takže pokud jste někdy stejný problém, o jQuery je animace, zkontrolujte a ujistěte se, že hodnoty, které přechází na animaci funkce jsou správné.
Related posts: Související příspěvky:
- JavaScript: GIFless animation. JavaScript: GIFless animace. Animate images,logos with jQuery Animovat obrázky, loga s jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Jak se dostat na indexu (pozici v rámci skupiny) z objektu s jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: Jak ověřit e-mailovou adresu JavaScript?
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Poslat funkci jako parametr jiné funkce (volání)
- JavaScript: Get anchor from URL JavaScript: Get kotva z URL












































