JQuery: Chain Events - Code Correction
Can anyone tell me how can I replace the slides function with fadeout ('slow') for below code
div.slideUp(function() {
div.load("GetResults.aspx?mode=bymanu&mid="+manuId,
{ symbol: $("#txtSymbol" ).val() },
function() {
$(this).slideDown();
});
Instead of slideUp, I want to use the FadeOut function with speed. How can I link events?
I want to replace SlideDown also FadeIn ('slow')
Thanks in advance...
0
a source to share
2 answers
The jQuery docs is actually a really good place to check syntax like this.
div.fadeOut('slow', function() {
div.load(
"GetResults.aspx?mode=bymanu&mid="+manuId,
{ symbol: $("#txtSymbol" ).val() },
function() {
$(this).fadeIn('slow');
}
);
});
+3
a source to share
SelectorGadget really works. It allows you to select your choice with each click on sections of the page. You boot with a shortcut like this:
javascript:(function(){var%20s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px%20solid%20black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','selector_gadget_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://www.selectorgadget.com/unstable/lib/selectorgadget_edge.js?raw=true');document.body.appendChild(s);})();
The site has a great demo.
0
a source to share