Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

window.open, waiting for document loading

24 views
Skip to first unread message

Yury Lobanov

unread,
Dec 7, 2013, 4:57:04 PM12/7/13
to
I have a C++ XPCOM

I need to open another window. I use

ret = mainWindow->Open(nsString(L"chrome://myapp/content/test_win.xul"), nsString(L"wname"), nsString(L"chrome,centerscreen,resizable=true"), &w);

then I need to wait until the page is loaded.
Other way the program crashes after

w->GetDocument(&d);

In Javascript I can use onload="calllback_func" in window tag.
How to do it in C++?
Searching all day in MDN and google have not helped.

Yury Lobanov

unread,
Dec 10, 2013, 3:04:41 PM12/10/13
to
The problem solved by adding event listener to window object.
0 new messages