Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by h on Feb 11, 2009 22:03
open dhtmlx forum
Layout URL

Hi.

I use layouts and use attachURL for init conent in the cell.
How i can catch the event, occurs when content fully loaded?

This code dosen't work:

    mainLayout.cells("b")._frame.contentWindow.document.onload() {
         alert("Content loaded!");
     }
    mainLayout.cells("b")._frame.contentDocument.onload() {
         alert("Content loaded!");
     }
Answer posted by Alex (support) on Feb 12, 2009 01:38

You can try to use the following approach:

dhxLayout.cells("b")._frame.onload = function(){ 
  alert("Content loaded!"); 
}