[jQuery] jquery is'nt very effective at execution

2007-06-10 Thread mathmax
http://fra.orkos.com/produits/tarifs.aspx Here is a page which I made. This page presents a list of products classified in a hierarchy. I have a textbox that allows the user to filter these products. Try to type a text in this textbox (for example the word "apple") and observe the speed of filte

[jQuery] jquery is slow at execution

2007-06-10 Thread mathmax
http://fra.orkos.com/produits/tarifs.aspx Here is a page which I made. This page presents a list of products classified in a hierarchy. I have a textbox that allows the user to filter these products. Try to type a text in this textbox (for example the word "apple") and observe the speed of filte

[jQuery] Re: jquery is slow at execution

2007-06-10 Thread mathmax
Thank you for your answer. With your code, the script is much faster, but it however remains much much slower than writing "normal" javascript You can compare the performances, I update the script with your line of code. Renato Formato wrote: > > > mathmax ha scr

[jQuery] Re: jquery is'nt very effective at execution

2007-06-10 Thread mathmax
Thank you. Is it possible to interrupt the script each time the user enter a new letter in the search box ? Dan G. Switzer, II wrote: > > >>http://fra.orkos.com/produits/tarifs.aspx Here is a page which I made. >>This >>page presents a list of products classified in a hierarchy. I have a >

[jQuery] Re: jquery is'nt very effective at execution

2007-06-10 Thread mathmax
this test : if( tbxValue != lastTbxValue ) will always return false because the function each() monoplize the unique thread. The event "onkeyup" from the textbox couldn't occur while each() is running, so tbxValue remains the same in the meantime. Dan G. Switzer, II wrote: > > >>Thank you.

[jQuery] Re: jquery is'nt very effective at execution

2007-06-11 Thread mathmax
It doesn't work : I write this : var instance_fonction = 0; function tbxSearch_keyup() { instance_fonction++; Populate(instance_fonction); } function Populate(instance_en_cours) { rowsToShow = culmsName.contains(tbxValue).parent(); rows.not(rowsToShow).each(function()

[jQuery] Re: jquery is'nt very effective at execution

2007-06-11 Thread mathmax
yes, but why doesn't interruption work even if the callback function fromonkeyup event is called with a setTimeout ? Dan G. Switzer, II wrote: > > >>function Populate(instance_en_cours) >>{ >> rowsToShow = culmsName.contains(tbxValue).parent(); >> rows.not(rowsToShow).each(function()