JavaScript: What if jQuery animation doesn't fire/start? JavaScript: מה אם האנימציה jQuery לא אש / להתחיל?
Posted on 19. פורסם ב 19. Jun, 2009 by Dragos in Coding , JavaScript & Ajax יוני, 2009 על ידי Dragos ב וקידוד, JavaScript & אייאקס
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. אני כבר עובד על לגלריה תמונה (כי אני אפרסם כאן כל לראות ולהשתמש) רצתי לתוך בעיה כי אני מעולם לא חווה לפני: jQuery הפסיקו לירות את האנימציה של אובייקט. I looked at the expression, everything was fine. הסתכלתי על הביטוי, הכל היה בסדר. However not the expression was the problem, but the variables I passed to the animation. אולם הביטוי לא היה הבעיה, אלא את המשתנים עברתי כדי האנימציה. For some reason a variable passed the value 'undefined', which was the problem that hampered my code from running smoothly. מסיבה כלשהי משתנה העביר את הערך 'לא מוגדר', אשר עיכבה את הבעיה כי הקוד שלי לפעול בצורה חלקה.
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. אז אם אי פעם נתקל בבעיה דומה על האנימציה של jQuery, לבדוק ולוודא כי ערכי לך לעבור לפונקציה אנימציה נכונים.
Related posts: הודעות קשורות:
- JavaScript: GIFless animation. JavaScript: אנימציה GIFless. Animate images,logos with jQuery הנפשת תמונות, לוגו עם jQuery
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: כיצד לקבל את האינדקס (עמדת בתוך קבוצה) של אובייקט עם jQuery?
- Javascript: How to validate email address with JavaScript? Javascript: כיצד לאמת את כתובת הדוא"ל עם JavaScript?
- JavaScript: Get anchor from URL JavaScript: קבל עוגן מתוך כתובת
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: שלח פונקציה כפרמטר לפונקציה אחרת (callbacks)












































