[jQuery] Re: feature suggestion: toggle(shownFunc,hiddenFunc)

2007-07-14 Thread Stephan Beal
On Jul 14, 1:51 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > The default behavior is show/hide. If you use manual callbacks you need to > define the full behavior, so you'll want to add the show()/hide() calls to > your jQuery chain. The intention wasn't to define the functions which do

[jQuery] Re: feature suggestion: toggle(shownFunc,hiddenFunc)

2007-07-14 Thread Dan G. Switzer, II
>Doh... i was working from this page: > >http://docs.jquery.com/Effects#toggle.28.29 > >in which the callbacks are not mentioned. Perhaps that page should >link back to the other one in the form of "see also..." The default behavior is show/hide. If you use manual callbacks you need to define the

[jQuery] Re: feature suggestion: toggle(shownFunc,hiddenFunc)

2007-07-14 Thread Stephan Beal
On Jul 14, 1:34 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > Toggle already uses > callbacks:http://docs.jquery.com/Events#toggle.28_even.2C_odd_.29 Doh... i was working from this page: http://docs.jquery.com/Effects#toggle.28.29 in which the callbacks are not mentioned. Perhaps that

[jQuery] Re: feature suggestion: toggle(shownFunc,hiddenFunc)

2007-07-14 Thread Dan G. Switzer, II
>$("#toggle").click(function(){ > $("#calendar .arg").toggle( >function(){$(this).Highlight(1000,'#ff9');}, // called when shown >function(){...} // called when hidden > ); // toggle() >... >} // click() > >i believe this could be done without harming backwards-compatibility? Toggle alr