I'm writing an extension for Google Chrome that converts a page to a PDF file. The extension, written in Javascript, extracts the DOM of the current page, and passes it to an NPAPI DLL, where the conversion happens. I want to show a progress dialog to the user that comes up as soon as the conversion begins, and goes away, or shows a status complete dialog, when the conversion has ended and the PDF file is opened for viewing. I'm a newbie at using Javascript. What should I do to achieve the aforementioned task?
The basic idea would be to:
addEventListener
for that) NPN_PluginThreadAsyncCall
helps with that)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.