Same as title, for a reason, i need to use the utilities.js of YAHOO UI , but i could not solved this problem. If i include the utilities.js(YAHOO UI), when i click the date picker, it throw a below exception
Code:
ce.addListener is not a function
fireEvent(click clientX=0, clientY=0)
batch(click clientX=0, clientY=0)
and date picker cannot be used, then i found there are yui adapter under the ext folder, so i added them and remove the utilities.js, but i still got the error
Code:
ce.addListener is not a function
addListener("deepclone", function(), Object mimicing=false initialConfig=Object, Object scope=Object)ext-all-debug.js (line 1204)
addListener(Object scope=Object, undefined, undefined, Object scope=Object)ext-all-debug.js (line 1190)
onTriggerClick()ext-all-debug.js (line 22224)
h(Object browserEvent=Event mouseout button=0 type=mouseout)ext-all-debug.js (line 1488)
getViewWidth(click clientX=0, clientY=0)ext-base.js (line 10)
[Break on this error] ce.addListener(fn, scope, o);
I guess this problem caused by conflict between YUI and Ext on event listener definition.
Anybody can help me? I don't know how to fix it
below is my code:
Code:
...
<script type="text/javascript" src="<%=uri%>/js/3rdparty/utilities.js"></script>
<script type="text/javascript" src="<%=uri%>/js/palette.js"></script>
...
queryForm.column({style:'width:40%;margin-left:10px;margin-top:10px'});
queryForm.add(
new Ext.form.DateField({
fieldLabel: p.label,
name: p.name,
width:190,
allowBlank:true
})
);
queryForm.end();
...