Hi,
I enjoy dhtmlx components very much and this windows functionality is a little bit new for me. I struggle to find a way how to pass data between layout and newly created window.
I want to open new modal window that will show exception that is raised by our program but I do not know how to pass data.
I need to be able to do something like:
- pass data to some parent for example this.modalErrorWindow.exception = myException; and when I call this.modalErrorWindow.attachURL(‘dhtmlxErrorDialog.html’); I want to access it in onload method like for example using some notation like parent.exception
or
- to be able to execute javascript function that is programmed in attached url html page like for example this.modalErrorWindow.showException(exception);
In previous no dhtmlx solution I used dialog arguments but those are not used here.
Could you please point me to some direction if this is possible?
I even found some help page explaining some _frame object and I fail to execute on it function myFunc()
this.modalErrorWindow.attachURL(‘testerror.html’);
this.modalErrorWindow.show();
ifr = this.modalErrorWindow._frame;
ifr.contentWindow.msg = “Popup message”;
ifr.contentWindow.myFunc();
ifr.contentWindow.document.getElementById(“myDiv”).innerHTML = “Object on page”;
it seems to me that object is not loaded or it points somewhere else. Could you please help?
BR
Zdenek