PDA

View Full Version : How to add the qtip to show error messages and tool tips



marimuthup
27 Jul 2007, 12:55 PM
Hi,

Could Some one help me to show the error messages thru the tool tip.

If I type incorrect date it shows the red mark on the display field but not the error on qtip

I am setting the property msgTarget : 'qtip'

Following is the code snippet I am using.

var startDate = new Ext.form.DateField({
format:'m/d/Y',
msgTarget : 'qtip',
emptyText : "MM/DD/YYYY",
maxValue : new Date()
});
startDate.setValue(new Date());
startDate.applyTo('startDate');
g_start_date = startDate.value;
startDate.on('change', startDateChanged);
function startDateChanged(record,index){
g_start_date = startDate.value;
}


Thanks in advance.

With regards
P.Marimuthu

tryanDLS
27 Jul 2007, 1:06 PM
Did you include these 2 lines in your code?


Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';

marimuthup
2 Aug 2007, 9:53 PM
thanks a lot,

It work cool on mouse over.