[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
click the checkbox? > } else { > targets.hide('slow'); > } > }).triggerHandler('click'); > > } > > myToggleDisplay('#myCheckboxID', 'td.areaToShow'); > > Ariel Flesler > > On 14 nov, 13:54, Snook <[EMAIL PROTECTED]&

[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
gt; changeBg(); //is really neccesary to call this EVERY time you > click the checkbox? > } else { > targets.hide('slow'); > } > }).triggerHandler('click'); > > } > > myToggleDisplay('#myCheckboxID', 'td.area

[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
> click the checkbox? > } else { > targets.hide('slow'); > } > }).triggerHandler('click'); > > } > > myToggleDisplay('#myCheckboxID', 'td.areaToShow'); > > Ariel Flesler > > On 14 nov, 13:54, Snook <[EMAIL P

[jQuery] How to speed up jQuery

2007-11-14 Thread Snook
Dear developers, I have a function which is called several times, when my page is loaded. This is VERY slow under IE, because I have a lot of checkbox. Did someone can explain me this difference between FF and IE ? And maybe how to improve this function : function myToggleShow(checkboxElem, sho

[jQuery] Re: Custom function called in toogle()

2007-11-06 Thread Snook
(showHideElem); > $(toggleElem).toggle( > function(){ showHide.show('slow'); toggleElem.checked = ! > toggleElem.checked; }, > function(){ showHide.hide('slow'); toggleElem.checked = ! > toggleElem.checked; } ); > > } > > On Nov 5, 2:34 pm, Sn

[jQuery] Re: Custom function called in toogle()

2007-11-05 Thread Snook
ul ! On Nov 3, 1:15 am, Wizzud <[EMAIL PROTECTED]> wrote: > function myToggle(toggleElem, showHideElem){ > var showHide = $(showHideElem); > $(toggleElem).toggle( > function(){ showHide.show('slow'); }, > function(){ showHide.hide('slow'); } )

[jQuery] Re: Custom function called in toogle()

2007-11-05 Thread Snook
var showHide = $(showHideElem); > $(toggleElem).toggle( > function(){ showHide.show('slow'); }, > function(){ showHide.hide('slow'); } ) > .each(function(){ this.checked = !this.checked; }); > > } > > On Nov 2, 12:21 pm, Snook <[EMAIL PROTECTED]>

[jQuery] Re: Custom function called in toogle()

2007-11-02 Thread Snook
> Calling toggle() runs event.preventDefault. > Whatever you want the click to do, you need to code it yourself. Ok, thanks. I have tried different implementation of preventDefault, regarding what I have found in this group. And probably I'm completely wrong because no one works for me. Here is

[jQuery] Re: Custom function called in toogle()

2007-11-01 Thread Snook
Thanks a lot Wizzud. This works fine. Regards, Damien

[jQuery] Re: Custom function called in toogle()

2007-11-01 Thread Snook
Thanks a lot Wizzud. This works fine. But did you have an idea why the checkbox didn't display the check mark when there are checked ? The checkbox are used to run the toggle function. Damien

[jQuery] Custom function called in toogle()

2007-10-31 Thread Snook
Hello, I use several time the same toggle function, like this: $("input#regime_ltn_c").toggle( function() { $("table#regime_ltn").show("slow"); }, function() { $("table#regime_ltn").hide("slow"); } ); So I would like to create

[jQuery] Re: Match a named dropdown

2007-10-30 Thread Snook
> To match that single select element, do: > > $("select[name=opportunity_type]").change(function() { That's works fine, thanks a lot Josh. -- Damien

[jQuery] Match a named dropdown

2007-10-29 Thread Snook
Dear, I'm looking for a way to match a dropdown with a specific name. Unfortunately, I cannot add a id to this field. Here is the html code of my dropdown: --None-- Controle Security/option> And I'm trying to access it in this code: $("select").change(function () { $("se