-
27 Jul 2007 12:55 PM #1
How to add the qtip to show error messages and tool tips
How to add the qtip to show error messages and tool tips
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
-
27 Jul 2007 1:06 PM #2
Did you include these 2 lines in your code?
Code:Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side';
Tim Ryan
Read BEFORE posting a question / BEFORE posting a Bug
Use Google to Search - API / Forum
API Doc (4.x | 3.x | 2.x | 1.x) / FAQ / 1.x->2.x Migration Guide / 2.x->3.x Migration Guide
-
2 Aug 2007 9:53 PM #3
Qtip
Qtip
thanks a lot,
It work cool on mouse over.


Reply With Quote