[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
('#myCheckboxID', 'td.areaToShow'); Ariel Flesler On 14 nov, 13:54, Snook [EMAIL PROTECTED] wrote: 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

[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
'); } }).triggerHandler('click'); } myToggleDisplay('#myCheckboxID', 'td.areaToShow'); Ariel Flesler On 14 nov, 13:54, Snook [EMAIL PROTECTED] wrote: 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

[jQuery] Re: How to speed up jQuery

2007-11-20 Thread Snook
the checkbox? } else { targets.hide('slow'); } }).triggerHandler('click'); } myToggleDisplay('#myCheckboxID', 'td.areaToShow'); Ariel Flesler On 14 nov, 13:54, Snook [EMAIL PROTECTED] wrote: Dear developers, I have a function which is called several times, when my page

[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,

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

2007-11-06 Thread Snook
('slow'); toggleElem.checked = ! toggleElem.checked; }, function(){ showHide.hide('slow'); toggleElem.checked = ! toggleElem.checked; } ); } On Nov 5, 2:34 pm, Snook [EMAIL PROTECTED] wrote: I also have tried, like you suggested, to use the .each() function. function myToggle

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

2007-11-05 Thread Snook
(){ showHide.hide('slow'); } ) .each(function(){ this.checked = !this.checked; }); } On Nov 2, 12:21 pm, Snook [EMAIL PROTECTED] wrote: 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

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

2007-11-05 Thread Snook
(toggleElem, showHideElem){ 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] wrote: Calling

[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. 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] Re: Custom function called in toogle()

2007-11-01 Thread Snook
Thanks a lot Wizzud. This works fine. Regards, 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 a

[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: select name=opportunity_type option value= selected=--None--/option option value=controleControle/option option