Window: getFrame() returns null

Hi.
After update from DHTMLX 3.4 → 4.0 win.getFrame() returns null.

	
window.dialog = function(url,iD) {
	
	var __construct = function(win) { 

		var frame = win.getFrame(); // ----------> returns null 

		win.centerOnScreen();
			
		frame.contentWindow.close = function() {
			 win.close();
		} 
                win.setText(frame.contentWindow.document.title);
	}
	
	if(""!=dhtmlXWindows) {
		if (window.dialogs === null || 
			window.dialogs === undefined) {
				window.dialogs = new dhtmlXWindows();
				//window.dialogs.setImagePath("3rdparty/javascript/dhtmlx/imgs/");
			}
		var win;
		if(!iD) iD = rand();
		win = window.dialogs.createWindow(iD, 1, 1, 1, 1);
		window.dialogs.attachEvent("onContentLoaded", __construct);
	} else { 
		alert("no window system available"); 
		return; 
	}

	
	win.setText("Loading .. "); 
	win.button("minmax1").hide();
	win.button("park").hide();
	win.attachURL(url, true);

	
	return win;
}

Did i miss something please?

Did it:

–> win.attachURL(url, true); // misconfigured

As documentation says user should switch 2nd parameter to true
to load within an iframe. Boolean is not correct for me. A string
names “AJAX” does the job.

–> win.attachURL(url, “AJAX”); // this does the job.

Please see if you have to update your docs!

Hi

works fine localy, 2nd param should be false

docs.dhtmlx.com/api__link__dhtml … churl.html
ajax - (optional) if set to true, the url will be loaded by ajax (async GET), false by default