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

Re: How do I abort a long running script in the hosted mshtml

5 views
Skip to first unread message

dsfadfa

unread,
May 22, 2009, 4:04:27 AM5/22/09
to
hgkfkgfjghf
"rasane" <ras...@discussions.microsoft.com> escribi� en el mensaje
news:394DB297-7A50-4810...@microsoft.com...
> Could someone tell if an equivalent of DLCTL_NO_SCRIPTS can be used after
a
> page is loaded? Ref:
>
http://www.tech-archive.net/Archive/InetSDK/microsoft.public.inetsdk.program
ming.webbrowser_ctl/2005-11/msg00023.html
>
>
> "rasane" wrote:
>
> > I have a MFC app that hosts mshtml container.
> > Some times a user page contains script (jscript or vbscript) that is
running
> > for a long time. In my particular application, at certain time, I need
to
> > change the page. But such long running script will freeze everything and
the
> > Navigate("xx"..) calls are not entertained. Using WebBrowser->Stop()
does not
> > stop the running script.
> >
> > Is there a way to provide script to prevent such long running code to
stop?
> > IE can do this and brings up a dialog asking "A script on this page is
> > causing IE to run slowly. ... making unresponsive. Do you want to abort
the
> > script?"
> >
> > I want to do whatever it does next when I press "Yes" on this dialog
> >
> > Any ideas?


0 new messages