【发布时间】:2015-11-21 19:48:58
【问题描述】:
朋友们,我已经在注册页面和编辑页面上编写了我的 javascript,但在我的编辑页面上我发现了两个错误。 在 magento 1.8 中。我在 layout/page.xml 中添加了 noconflict 但我没有得到任何解决方案。
TypeError: element.attachEvent is not a function
http://localhost/cdd_chile/js/prototype/prototype.js
Line 5653
TypeError: element.dispatchEvent is not a function
http://localhost/cdd_chile/js/prototype/prototype.js
Line 5734
我在两个页面上都使用这些脚本.....
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);?>cddjs/jquery.Rut.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
【问题讨论】:
标签: javascript jquery magento-1.8