View Full Version : Extjs portal load html content from server

14 Apr 2011, 4:49 AM
I have an extjs portal created using the basic example.I need to load some html content into portlet from server side by checking some conditions.Can anybody paste a sample code? or atleast give me an idea about how this should be done.

14 Apr 2011, 11:20 AM
Ext 'portlet' in the Portal layout is just a simple extension of an Ext.Panel. See the API docs for the load() method on Ext.Panel.

You can basically do something like this:

url: 'your URL here',
params: {
someParam 'xxx',
someOtherParam: 'yyy'
nocache: true,
text: 'Loading...'