2 * Ext JS Library 2.2.1
\r
3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
10 * Ext JS Library 2.0
\r
11 * Copyright(c) 2006-2007, Ext JS, LLC.
\r
12 * licensing@extjs.com
\r
14 * http://extjs.com/license
\r
17 Ext.onReady(function(){
\r
20 function insertImage(data){
\r
21 Ext.DomHelper.append('images', {
\r
22 tag: 'img', src: data.url, style:'margin:10px;visibility:hidden;'
\r
23 }, true).show(true).frame();
\r
27 function choose(btn){
\r
29 chooser = new ImageChooser({
\r
30 url:'get-images.php',
\r
35 chooser.show(btn.getEl(), insertImage);
\r
38 btn = new Ext.Button({
\r
39 text: "Insert Image",
\r