PDA

View Full Version : loading static html



dedoz
25 May 2012, 3:19 PM
hi.
first. i know how to work with ext ajax and Ext.direct to send and retrieve data from the server.
now im trying to load static html pages.

I have some static html documents, they are my system help pages.
i want to load them inside a ext.component, just a rectangle :d
how can i do that ?

i know components have a "html" property where you can set arbritrary html and ill be displayed inside the component.
should i load the html and then set it to that property ?
also how to load html in a decent way where browser can cache them like normal pages ?
should i go for a iframe ?

i want my help look like sencha docs :d but not that avanced just a list with links and load my static html in the right side/panel/component

:d
thanks.

scottmartin
25 May 2012, 4:13 PM
Can you load html in a panel like:



Ext.onReady(function(){
Ext.create('Ext.panel.Panel',{
title: 'loader panel',
renderTo: Ext.getBody(),
width : 800,
height: 600,
border: false,
loader:{
url:'../../extjs4/index.html',
autoLoad:true
}
});
});


Regards,
Scott.

dedoz
31 May 2012, 11:44 AM
thank you