View Full Version : JS Errors in TreePanel with anim:true and Prototype adapter
neongrau
17 Apr 2007, 4:10 AM
when you try to expand/collapse a node you'll get an infinite loop generating this error
this.transforms has no properties
[Break on this error] this.transforms.each(function(transform){
effects.js (line 982)
or is there a specific prototype version needed? i currently have the default one from rails 1.2
brandon
17 Apr 2007, 7:38 AM
I had the same problem under different circumstances (when I called highlight on an element).
To fix it, I downloaded scriptaculous directly from the site (http://script.aculo.us/downloads) and unpacked it into the public folder.
Then, instead of the usual:
<%= javascript_include_tag :defaults %>
I did:
<%= stylesheet_link_tag "/ext-1.0/resources/css/ext-all.css" %>
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "/scriptaculous-js-1.7.0/src/scriptaculous.js?load=effects" %>
<%= javascript_include_tag "/ext-1.0/adapter/prototype/ext-prototype-adapter.js" %>
<%= javascript_include_tag "/ext-1.0/ext-all-debug.js" %>
The ext-prototype-adapter seems to play nicer with the vanilla scriptaculous rather than the one packaged with Rails.
Hope that helps!
- Brandon Beacher
neongrau
17 Apr 2007, 8:01 AM
The ext-prototype-adapter seems to play nicer with the vanilla scriptaculous rather than the one packaged with Rails.
good to know, thanks!
rberger
23 Aug 2007, 9:34 PM
I was getting a similar error message (this.transforms has no properties) using FX on a toolbar. When I swapped out what I think was the official scriptaculous downloaded files (not the ones that came with Rails) with the prototype and scriptaculous files from the Ext distro, it all worked fine. (Ext 1.1)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.