JavaScript: What if jQuery animation doesn't fire/start? JavaScript: Hva hvis jQuery animasjon ikke brann / start?
Posted on 19. Lagt inn 19.. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Jun 2009 av Dragos i Coding, 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 jobbet med et bilde galleri (som jeg vil publisere her for alle å se og bruke), og jeg løp inn i et problem som jeg aldri har opplevd før: jQuery stoppet avfyring animasjonen av et objekt. I looked at the expression, everything was fine. Jeg så på uttrykket, var alt fint. However not the expression was the problem, but the variables I passed to the animation. Men ikke uttrykket var problemet, men variablene jeg gått over til animasjon. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. Av en eller annen grunn en variabel passerte verdien "udefinert", som var problemet som hemmet meg koden kjøres problemfritt.
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 noen gang opplever det samme problemet om jQuery er animasjon, kontrollere og sørge for at verdiene som du sender til animasjonen funksjonen er riktige.
Related posts: Relaterte artikler:
- JavaScript: GIFless animation. JavaScript: GIFless animasjon. Animate images,logos with jQuery Animere bilder, logoer med jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Hvordan få indeksen (posisjon innenfor en gruppe) av et objekt med jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: Hvordan kan validere e-postadressen med JavaScript?
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send fungere som en parameter til en annen funksjon (tilbakeanrop)
- JavaScript: Get anchor from URL JavaScript: Få anchor fra webadresse












































