PDA

View Full Version : Border layout, load in region center



Stephan123
24 Aug 2009, 7:38 AM
Hello !

I have an borderlayout


region : "center",
title : "Domainverwaltung",
id: 'center',
xtype: 'panel',
items: [{
html: 'Hello'
}]and i will dynamical insert content in the 'center' region.


var center = Ext.getCmp('center').load({
url: 'vorlage1.js',
scripts: true
});It works. But i see the javascript like text.
What is wrong ?


Greetings

Stephan

Animal
24 Aug 2009, 7:58 AM
Why would you load javascript files through Ajax?

Why not just include them at page startup using a <script src="..."> tag?