Extjsエラーメッセージ情報
1901 ワード
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/ext-all.js"></script>
<script type="text/javascript" src="ext/locale/ext-lang-zh_CN.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.form.field.Base.prototype.msgTarget = "side"; //
var simple = new Ext.FormPanel({
labelWidth: 50,
frame: true,
title: 'Simple Form',
width: 350,
defaults: {width: 230},
defaultType: 'textfield',
items:[{
msgTarget: 'qtip',
fieldLabel: 'qtip',
width: 100,
allowBlank: false,
blankText: ' '
},{
msgTarget: 'title',
fieldLabel: 'title',
allowBlank: false,
blankText: ' '
},{
msgTarget: 'under',
fieldLabel: 'under',
allowBlank: false,
blankText: ' '
},{
msgTarget: 'side',
fieldLabel: 'side',
allowBlank: false,
blankText: ' '
}]
});
simple.render("form");
});
</script>
</head>
<body>
<div id="form"></div>
</body>
</html>