From Alpha1 to Alpha2 - Ext JS

本文记录了从ExtJS 0.33版本迁移到Alpha 2版本的过程及遇到的问题。主要介绍了CSS文件替换、代码更新及JavaScript文件加载顺序调整等内容。在迁移过程中遇到了“Ext未定义”的错误,并给出了解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Hi I began to migrate from 0.33 to alpha1 and the page was working ok, I did:

...
2. Replace yui-ext.css with ext-all.css.
Change Ext CSS entries in your code/html. The 'y' prefix is replaced with 'x-'. For example, 'ydlg' becomes 'x-dlg' and 'ylayout-inactive-content' becomes 'x-layout-inactive-content'.

3. Replace 'YAHOO.ext.' with 'Ext.'

in alpha1 I had:

<script type="text/javascript" src="Build/utilities_2.1.0.js"></script>
<script type="text/javascript" src="ext-all.js"></script>
<script language="javascript" src="examples/layout/ETSLayoutAll.js"></script>

to alpha2 I changed
<script type="text/javascript" src="yui-utilities.js"></script>
<script type="text/javascript" src="ext-all.js"></script>
<script language="javascript" src="examples/layout/ETSLayoutAll.js"></script>

now when I run the page I get this error:

Ext is not defined
init : function(){
// initialize state manager, we will use cookies
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
maybe is trivial, I am missing something?

kind regards
Frank
Reply With Quote
  #2  
Old 02-24-2007, 11:47 PM
Default

Make sure you include ext-yui-adapter.js as the second file per Jack's instructions.
__________________
Brian Moeskau
FAQ / Tutorials / User Extensions / Enhanced Forum Search
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值