in an asp.net website i am using some jquery .. for sliding purposes
function showHeadOne() {
$("#serveHeadOne").animate({ 'left': '100%' }, 500, 'swing');
}
function showHeadTwo() {
$("#serveHeadTwo").animate({ 'left': '100%' }, 500, 'swing'); }
same like this eight function. and calling these function with arrows on website. its working perfectly but if we press arrows at once for two three time or more , it excute function overlapping each other .
for more details you may watch this at http://www.omanion.com/newakhdar/ go to option 2 , (services) and then press arrow keys of arrow buttons on this page.
talhaoman
Member
1 Points
20 Posts
How to enable execution of other functions after execution of 1st one .
Jun 07, 2012 02:47 PM|LINK
in an asp.net website i am using some jquery .. for sliding purposes
function showHeadOne() { $("#serveHeadOne").animate({ 'left': '100%' }, 500, 'swing'); } function showHeadTwo() { $("#serveHeadTwo").animate({ 'left': '100%' }, 500, 'swing'); }same like this eight function. and calling these function with arrows on website. its working perfectly but if we press arrows at once for two three time or more , it excute function overlapping each other .
for more details you may watch this at http://www.omanion.com/newakhdar/ go to option 2 , (services) and then press arrow keys of arrow buttons on this page.
i want these slides to move one after another.
bruce (sqlwo...
All-Star
36644 Points
5432 Posts
Re: How to enable execution of other functions after execution of 1st one .
Jun 08, 2012 01:29 PM|LINK
you should use .stop()
talhaoman
Member
1 Points
20 Posts
Re: How to enable execution of other functions after execution of 1st one .
Jun 10, 2012 02:53 PM|LINK
like how ??? this way i tried but not working like i want .
$("#HeadOne").stop().animate({'left' : '0%'},500,'linear');
tried delay().
setTimeout().
But none is helping me
RameshRajend...
Star
7983 Points
2099 Posts
Re: How to enable execution of other functions after execution of 1st one .
Jun 10, 2012 03:18 PM|LINK
Pls check this
http://stackoverflow.com/questions/1169370/jquery-sliding-panels-one-after-the-other
Thank u
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: How to enable execution of other functions after execution of 1st one .
Jun 11, 2012 04:12 AM|LINK
Hello
You may try to parse true to stop function, so it clears the queued animations. For your reference,
http://api.jquery.com/stop/
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework