Re: HTML From Stream with Scripts



Kelly <kelly.graus@xxxxxxxxxxx> wrote:
I am currently loading HTML from a stream using IPersistStreamInit
(ie, I Navigate to about:blank, wait for the DocumentComplete event,
then use IPersistStreamInit to load the stream). This works great
until I try to load HTML that has a script tag. It looks like the
browser doesn't evaluate any script tags since the page has already
been loaded. Is there a way to get this to work?

Try using IPersistMoniker instead:

http://groups.google.com/group/microsoft.public.inetsdk.programming.html_objmodel/browse_frm/thread/fa57f1eebf880388/02bacd47ce8728f4

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • HTML From Stream with Scripts
    ... I am currently loading HTML from a stream using IPersistStreamInit (ie, ... use IPersistStreamInit to load the stream). ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Loading HTML elements from memory
    ... page and all contained elements from memory. ... I understand how to use IPersistStreamInit and ... IPersistMoniker to load a page from memory, ... the request and redirect it to a disk file. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Read image as bytes from javascript
    ... You can load it into the page, but AFAIK, it's not possible to get the ... You could perhaps use an iframe or a script tag to get the data, ... Just set the display style to "none", set the src, ...
    (comp.lang.javascript)
  • Re: (Reliably) calling a function from a dynamically loaded script
    ... the DtTvB wrote: ... I'm not getting any error but IE doesn't seem to react to load on the ... script tag. ...
    (comp.lang.javascript)
  • Re: (Reliably) calling a function from a dynamically loaded script
    ... the DtTvB wrote: ... I'm not getting any error but IE doesn't seem to react to load on the ... script tag. ...
    (comp.lang.javascript)

Loading