Sure, try the below modified dhtmlwindow.js file. It adds support for a new event handler called onajaxpageload. Here's a sample usage:
Code:
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "#3: Ajax Win Title", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
ajaxwin.onajaxpageload=function(){alert('hi')}
}
In the above case, a alert will be shown when the ajax page within the DHTML window has finished loading.
Bookmarks