javascript - ExtJs Window doesn't render -


Please tell me that my window does not render below is javascript that I use

  & Lt; Link href = "/ scripts / ext / resources / css / ext-all.css" rel = "stylesheet" type = "text / css" /> & Lt; Script src = "/ script / jquery / jquery-1.3.2.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / ext / adapter / jquery / ext-jquery-adapter.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / ext / ext-all.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {var viewport = new Ext.Viewport ({items: [[{"minimizable": true, "maximizable": true, "title": "hello world", "height": 300, "width" : 400, "xtype": "window"}]]}}})}); & Lt; / Script & gt;  

Why do you create a window in the form of an item in the viewport? You do not do this.

Do:

  Ext.onReady (function () {var win = new Ext.Window ({minimizable: true, maximizable: true, title: "Hello World" , Height: 300, width: 400}); win.show ();});  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -