|
|
|
отобразить содержимое свойства 'html'
|
|||
|---|---|---|---|
|
#18+
ExtJS. по нажатию на кн появляется новое окно. оно имеет свойства title и html. свойство html отображается внутри окна, сожержимое которого нужно отобразить в другом месте (окне, панели, вывести на печать). При попытке отобразить содержимое свойства html окна win (win.html) выдаётся только undefined . пример кода: var win = new Ext.Window ({ title:'Офигенное окошко', height:520, width:750, html: '<strong><b>Name </b></strong>'+rec.get("Name")+'</br>'+ '<strong><b>User </b></strong>'+rec.get("User")+'</br>'+ ......................., bbar:{ items:[{ icon: text: 'Print', width:110, height:25, handler:function(btn, e) { var htmlMarkup = ['<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' + '<head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /><title>' + win.title + '</title></head><body>' + win.html + '</body></html>' ] ; var win2 = window.open('', 'printgrid'); win2.document.open(); win2.document.write(htmlMarkup); win2.document.close(); //win2.print(); } подскажите, плз, как отобразить содержимое свойства html ?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.03.2013, 12:46 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=38175862&tid=1448626]: |
0ms |
get settings: |
7ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
167ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 222ms |
| total: | 456ms |

| 0 / 0 |
