Hi oxydum,
What you are trying to do is this:
new og.ContentPanel({
title: "google",
id: 'google-panel',
iconCls: 'ico-google',
refreshOnWorkspaceChange: false,
closable: true,
defaultContent: {
type: "url",
data: "http://www.google.com"
}
})
But it won't work due to browser restrictions. Fetching URL's from another domain through AJAX (XmlHtppRequest) isn't allowed. Yo
However, you can achieve the same thing using an iframe, like this:
new og.ContentPanel({
title: "Google",
id: 'google-panel',
iconCls: 'ico-google',
refreshOnWorkspaceChange: false,
closable: true,
defaultContent: {
type: "html",
data: '<iframe style="width:100%;height:100%;border:0px;" src="http://www.google.com"></iframe>'
}
})
Also note that in order for the tab icon to be shown there has to be a CSS rule for 'ico-google' defined in some CSS file (for example: 'public/assets/themes/default/stylesheets/og/og.css').
Cheers