/* url grabbed from link */
var url = 'http://example.com/example.html';
var win = new Ext.Window({
id: 'window{$tv->id}'
, title : "{$lang_help}: {if $tv->caption}{$tv->caption}{else}{$tv->name}{/if}"
, width : 500
, height: 400
, layout: "fit"
, autoLoad: {
url : url
, scripts : false
}
});
win.show();
Unexpected token <:
405 Not Allowed
nginx/1.4.4
This question has been answered by pepebe. See the first response.
var url = 'http://example.com/example.html';
MODx.helpWindow = new Ext.Window({
id: 'window{$tv->id}'
, title : "{$lang_help}: {if $tv->caption}{$tv->caption}{else}{$tv->name}{/if}"
, width: 850
, height: 500
, modal: true
, layout: "fit"
, html: '<iframe onload="parent.MODx.helpWindow.getEl().unmask();" src="' + url + '" width="100%" height="100%" frameborder="0"></iframe>'
});
MODx.helpWindow.show(Ext.getBody()); id: 'window{$tv->id}'id: 'win{$tv->id}'