<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Avvea - Adv Blocks Editor</title>
<link rel='stylesheet' type='text/css' href='main.css'>
<script type='text/javascript' src='lib/ext/adapter/ext/ext-base.js'></script>
<script type='text/javascript' src='lib/ext/ext-all-debug.js'></script>
<script type='text/javascript'>
Ext.onReady(function(){
jsonTA = new Ext.form.TextArea({
renderTo: Ext.get('ta1')
});
button1 = new Ext.Button({
title : 'Edit block',
text : 'Edit',
renderTo : Ext.get('b1'),
handler: editBlock
});
button2 = new Ext.Button({
title : 'Get JSON-code',
renderTo : Ext.get('b2'),
handler: getJSONcode
})
})
function editBlock(){alert('edit Block!')};
function getJSONcode(){alert('Get JSON code!')};
</script>
</head>
<body>
<div id='ta1'></div>
<div id='b1'></div>
<div id='b2'></div>
</body>
</html>
TextArea нормально рисуется...