Rauan Maemirov
2008-Feb-13 11:55 UTC
Is Ajax.Autocompleter (s.a.u 1.8.1) supports Prototype 1.6.0.2
When I used it with turned on deprecation.js in log appeared the following warn: Prototype Deprecation Warning: Position.clone has been deprecated, please use Element#clonePosition instead. @http://example.com/js/protoculous.packed.js:1 @http://example.com/js/protoculous.packed.js:6 @http://example.com/js/protoculous.packed.js:6 @http://example.com/js/protoculous.packed.js:6 @http://example.com/js/protoculous.packed.js:6 @http://example.com/js/select.js:52 @http://example.com/js/protoculous.packed.js:6 @http://example.com/js/protoculous.packed.js:1 @http://example.com/js/protoculous.packed.js:1 and error: hash.__properties has no properties http://example.com/js/deprecation.js Line 339 In controls.js ... function(element, update){ if(!update.style.position || update.style.position==''absolute'') { update.style.position = ''absolute''; Position.clone(element, update, { setHeight: false, offsetTop: element.offsetHeight }); } ... What I have to do? I didn''t what to fix it on my own, ''cause afraid that smth would be broken. BTW, Autocompleter works not good when there''s too much data. In IE, Safri and Opera div disappears when i dragging vertical-scroller. And I also suspect, that its'' code "encourage" memory leaks on multiple using. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Tobie Langel
2008-Feb-13 12:09 UTC
Re: Is Ajax.Autocompleter (s.a.u 1.8.1) supports Prototype 1.6.0.2
Hi, Currently, deprecation.js has to be included right after Prototype... thus *before* scriptaculous. So it won''t play nice with protoculous. Hence the error you are getting. Regarding the fact that scriptaculous is using deprecated code, please check that it is so in trunk and file a bug report (or better, a tested patch). Thanks! Tobie On Feb 13, 12:55 pm, Rauan Maemirov <rauan1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I used it with turned on deprecation.js in log appeared the > following warn: > > Prototype Deprecation Warning: Position.clone has been deprecated, > please use Element#clonePosition instead. > > @http://example.com/js/protoculous.packed.js:1 > @http://example.com/js/protoculous.packed.js:6 > @http://example.com/js/protoculous.packed.js:6 > @http://example.com/js/protoculous.packed.js:6 > @http://example.com/js/protoculous.packed.js:6 > @http://example.com/js/select.js:52 > @http://example.com/js/protoculous.packed.js:6 > @http://example.com/js/protoculous.packed.js:1 > @http://example.com/js/protoculous.packed.js:1 > > and error: > > hash.__properties has no propertieshttp://example.com/js/deprecation.js > Line 339 > > In controls.js > > ... > function(element, update){ > if(!update.style.position || > update.style.position==''absolute'') { > update.style.position = ''absolute''; > Position.clone(element, update, { > setHeight: false, > offsetTop: element.offsetHeight > }); > } > ... > > What I have to do? I didn''t what to fix it on my own, ''cause afraid > that smth would be broken. > > BTW, Autocompleter works not good when there''s too much data. In IE, > Safri and Opera div disappears when i dragging vertical-scroller. And > I also suspect, that its'' code "encourage" memory leaks on multiple > using.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
zmaj
2008-Feb-13 19:56 UTC
Re: Is Ajax.Autocompleter (s.a.u 1.8.1) supports Prototype 1.6.0.2
If you''re using IE and exspeccially if you are using IE with big trees or nested tables it''s better not to use 1.6.0.2 with the latest script.aculo.us 1.8.1 release. Autocompleter and all clonePosition related code is behaving eiter very slow or results in unexpected errors like e.g "style is null or not a object" ... Using the 1.6.0.1 thats in the s.a.u 1.8.1 dist works much much faster on IE and leads to no autocompleter errors like the one discribed abouve. more here http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/cb116ceb985ab8df/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---