i have a ie7 add on, i'm adding html elements to the page being browsed.
ie throws operation aborted, and dont nevigate to the page, anyone knows what to do?
i work asynchronously with the html elements adding
i have a ie7 add on, i'm adding html elements to the page being browsed.
ie throws operation aborted, and dont nevigate to the page, anyone knows what to do?
i work asynchronously with the html elements adding
The IE DOM objects are all STA object. Which means you can only use them on the thread they were created on, which is the Tab UI thread.
If you need to use them from a background thread, you must marshal the object from one apartment to the other. This is accomplished fairly easily using the Global Interface Table.
The best way to make sure you work with the main thread of your web browser helper is to do all of your async work in background worker.
the second option is to create a syncronization context and allways perform dom changes from the sync context