JQuery beautifully queues up successive animations applied to an HTML object, and that is great. But sometimes this can be an irritant, say like when you have mouseover and mouseout effects and if the animations queue up when user quickly hovers the mouse over and out on the HTML object.
So is there a way to cancel previous JQuery animations on a HTML div before starting a new one?
Well, yes, just call the stop method on the object before calling the animate method on it as shown in the example below.
$("#animationDiv").stop().animate({opacity:0},500);







Hey can you please help me regarding one issue. I have created a project which is about advertising.We have done some form validation.And for login we have created a servlet which takes us to a new page(invalid.html) in case of wrong password. Our project guide wanted us to validate the form for password, ie in case the user enters a password and username which dont match then the the form should not go to invalid.html but display incorrect password on that page itself. I only know about javascript form validation but in this case I will have to use Database for validation so how can it be done.
Our project guide doesn’t help at all but makes things tougher for us. Please help!
P.S I also found a link in which some help is given regarding fetching data from database into javascript. But It didn’t work. http://www.devarticles.com/c/a/JavaScript/Digging-More-into-SQL-Server-2000-Using-Clientside-JavaScript/3/
Happy New Year Gurudev! Your blog is excellent
Thanks Akshay, wish you the same. Have a great year ahead.
To connect to database you should use some server side language like java or php or asp etc. You cannot use client side java script to connect to server side database.