PDA

View Full Version : Help for my first Ux


becomcs
09-26-2007, 09:25 AM
Hi!

I'm looking for help about my first .ux

I post in help section, but there is so many post that I think it's hopeless.

My goal is to improve messagebox to add an htmleditorbox.

But in fire bug I have the following error
Ext.ux.HtmlEditorBox.show is not a function
(no name)(Object browserEvent=Event resize button=-1 type=resize)msg-box.js (line 27)
h(Object browserEvent=Event resize button=-1 type=resize)ext-all-debug.js (line 1488)
getViewWidth(click clientX=0, clientY=0)ext-base.js (line 10)
[Break on this error] animEl: 'mb3'

the error is at lines


.../...
Ext.ux.HtmlEditorBox.show({
title: 'Address',
msg: 'Please enter your address:',
width:300,
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
fn: showResultText,
animEl: 'mb3'
});
.../...


Any clue?

Ir is my Ux
Ext.namespace('Ext.ux');

Ext.ux.HtmlEditorBox = function(){

Ext.ux.HtmlEditorBox.superclass.constructor.call(this);
};

Ext.extend(Ext.ux.HtmlEditorBox, Ext.MessageBox, {

getDialog : function(){
alert('toto');
// Ext.ux.HtmlEditorBox.superclass.getDialog.call(this);
Ext.ux.HtmlEditorBox.prototype.getDialog.call(this);
var HTMLedit = new Ext.form.HtmlEditor({
width:100,
height:100
});
HTMLedit.applyTo(textareaEl.id);
return dlg;
},

show : function(options){
return Ext.ux.HtmlEditorBox.prototype.show.call(options);
}
});


Please Help!!!