Apr 27, 2012, 9:24 AM
[CLOSED] [Razor] Setup Auto load panel in razor
Hi dev team,
I try to create Panel with autoload( Loader in version 2.0) and this is my code:
7Refused to display document because display forbidden by X-Frame-Options.
Please check this for me. And how to reload panel with new url? My javascript function:
Refused to display document because display forbidden by X-Frame-Options.
Thanks and best regards,
I try to create Panel with autoload( Loader in version 2.0) and this is my code:
Html.X().Panel()
.Region(Region.Center)
.ID("centerPanel")
.Height(600)
.Title("Home")
.AutoDoLayout(true)
.Loader(new ComponentLoader {
AutoLoad = true,
DisableCaching = true,
Url = "http://google.com",
ReloadOnEvent = true
})
Nothing happened, when I open Google Chrome Debug Console, it show an error:7Refused to display document because display forbidden by X-Frame-Options.
Please check this for me. And how to reload panel with new url? My javascript function:
function loadContent(title, url) {
App.centerPanel.load({
url: url,
disableCaching: true,
text: "Loading...",
timeout: 30,
scripts: true,
mode: 'iframe'
});
App.centerPanel.setTitle(title);
}
Same error display in Chrome debug console:Refused to display document because display forbidden by X-Frame-Options.
Thanks and best regards,
Last edited by Daniil; May 02, 2012 at 9:43 PM.
Reason: [CLOSED]