How to get complete HTML body using browser helper object (BHO) in case of DHTML/AJAX page?

余生颓废 提交于 2019-12-04 18:15:36

The AJAX DHTML changes mostly don't cause a further onDocumentComplete call.

You need to register for further Window or Document events such as DISPID_HTMLWINDOWEVENTS2_ONLOAD.

One method is to advise the window of a com object that you provide with the generic event sink interface. hr = AtlAdvise(winDisp, pWinHandler, DIID_HTMLWindowEvents2, &dwCookie);

When this further event is triggered re examining the document you will find that it is updated.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!