Problems with animateX not being defined - Ext JS

I have included the files like this:

<script type="text/javascript" src="/aspicio/js/yui-utilities.js" ></script>
<script type="text/javascript" src="/aspicio/js/logger.js" ></script>
<script type="text/javascript" src="/aspicio/js/treeview.js" ></script>
<script type="text/javascript" src="/aspicio/js/container.js" ></script>
<script type="text/javascript" src="/aspicio/js/calendar.js" ></script>
<script type="text/javascript" src="/aspicio/js/menu.js" ></script>
<script type="text/javascript" src="/aspicio/js/ext-all.js" ></script>
<script type="text/javascript" src="/aspicio/js/ext-bridge-yui.js" ></script>
Followed by all our own scripts.

But on expand/collapse of a Region, it's trying to create a YAHOO.util.Anim, and call animateX on it.

This looks like it is being set up by ext-bridge-yui.js, but that doesn't seem to work!

Firebug tells me all the scripts are in the correct place - no 404s!

What am I doing wrong :?:
Reply With Quote
  # 2  
Old 02-21-2007, 07:06 AM
Default

There is a real problem with animateX.

Just go on the documentation page (make sure Firebug is running) :
http://www.jackslocum.com/deploy/ext-1.0-alpha1/docs/

and try to minimize the left documention explorer.... you will have the error message :
Quote:
59.animateX is not a function
slideIn(Object width=Object, Object scope=Object block=true anim=Motion yui-gen53, function(), 0.5, function(), function())ext-all.js (line 24)
slideIn()ext-all.js (line 24)
slideIn()ext-all.js (line 24)
slideIn(Object scope=Object block=true anim=Motion yui-gen53, function())ext-all.js (line 24)
slideIn("l", Object scope=Object block=true anim=Motion yui-gen53)ext-all.js (line 24)
SplitLayoutRegion()ext-all.js (line 188)
LayoutRegion(Object browserEvent=Event mouseout button=0 shiftKey=false)ext-all.js (line 186)
EventManager(Object browserEvent=Event mouseout button=0 shiftKey=false)ext-all.js (line 18)
namespace(click clientX=0, clientY=0)utilities_2.1.0.j... (line 2)
[Break on this error] Ext.enableFx=true;Ext.apply(Ext.Element.prototype,{slideIn:function(_1,o){var el...
Reply With Quote
  # 3  
Old 02-21-2007, 07:26 AM
Default

Well, that's sort of good. At least I'm not doing something blindingly stupid! I should think this will be patched quickly.
Reply With Quote
  # 4  
Old 02-21-2007, 11:13 AM
Default

animateX is in the ext-bridge-yui.js. The error in the docs is because they aren't including ext-bridge-yui.js. Are you sure everything is right?
Reply With Quote
  # 5  
Old 02-21-2007, 01:29 PM
Default

I think this matches what i have written here:
http://www.yui-ext.com/forum/viewtopic.php?t=2832

Still did not had the time to check wether the yui debug versions are the root cause.
Reply With Quote
  # 6  
Old 02-22-2007, 04:55 AM
Default

It's still definitely not defined for me, and my document head looks like this:

<script type="text/javascript" src="/aspicio/js/yui-utilities.js" ></script>
<script type="text/javascript" src="/aspicio/js/logger.js" ></script>
<script type="text/javascript" src="/aspicio/js/treeview.js" ></script>
<script type="text/javascript" src="/aspicio/js/container.js" ></script>
<script type="text/javascript" src="/aspicio/js/calendar.js" ></script>
<script type="text/javascript" src="/aspicio/js/menu.js" ></script>
<script type="text/javascript" src="/aspicio/js/ext-all.js" ></script>
<script type="text/javascript" src="/aspicio/js/ext-bridge-yui.js" ></script>
And I can see ext-bridge-yui.js in Firebug's script tab. It's just not being executed!

I've uncompressed it. I can set a breakpoint on the first line

(function(){
9 var E=YAHOO.util.Event;
10 var D=YAHOO.util.Dom;
11 var ES=YAHOO.util.Easing;
12 var A=YAHOO.util.Anim;
13 Ext.apply(Ext.compat, {
14 get:function(el) {
15 return D.get(el);
16 }
17 });
18})();
19
But it does not get into the other lines at all....

Firefox 2.0.0.1
Reply With Quote
  # 7  
Old 02-22-2007, 05:13 AM
Default

Forget about it! All my own bad work! And the other probs that I reported! :oops:
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值