This is a translated page. The original can be found here: http://iwebdevel.com/2009/06/19/javascript-what-if-jquery-animation-doesnt-firestart/
UPDATES VIA RSS | Email Opdateringer via RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: What if jQuery a… Hjem / Kodning / JavaScript & Ajax / JavaScript: Hvad hvis jQuery a ...

JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Hvad hvis jQuery animationen ikke brand / start?

Posted on 19. Sendt den 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Juni, 2009 af Dragos i Kodning, JavaScript og 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. Jeg har arbejdet på et billede galleri (som jeg vil offentliggøre her for alle at se og bruge), og jeg løb ind i et problem, at jeg aldrig har oplevet før: jQuery stoppet affyring animationen af et objekt. I looked at the expression, everything was fine. Jeg så på de udtryk, alt var fint. However not the expression was the problem, but the variables I passed to the animation. Dog ikke udtryk var problemet, men de variabler, jeg gik til animationen. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Af en eller anden grund en variabel bestået værdien "udefinerede", som var det problem, der hindrede min kode i at køre problemfrit.

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. Så hvis du nogensinde oplever det samme problem om jQuery's animation, kontrollere og sørg for, at de værdier, du sender til animationen funktion er korrekte.

Translate this post Oversæt dette indlæg


Related posts: Relaterede stillinger:

  1. JavaScript: GIFless animation. JavaScript: GIFless animation. Animate images,logos with jQuery Animere billeder, logoer med jQuery
  2. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Sådan får du indekset (position inden for en gruppe) af et objekt med jQuery?
  3. Javascript: How to validate email address with JavaScript? Javascript: Hvordan at validere e-mail-adresse med JavaScript?
  4. JavaScript: Get anchor from URL JavaScript: Få anker fra webadresse
  5. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send fungere som en parameter til en anden funktion (tilbagekald)

    blog comments powered by Disqus blog comments powered by Disqus