Using webbrowser ctl to save the generated/partial source html page(rendered in javascript)



Using the IPersistFile Save function will save the html file but the
javascript in the file is not rendered.
http://joongangdaily.joins.com/article/view.asp?aid=2874571
How to do this??I want the html file without the javascript inside.

///////////////////////////////////////////////////////////////////////////////////////
IDispatch *document_dispatch = NULL;
IPersistFile *document = NULL;
hr = _Browser->get_Document(&document_dispatch);

if (SUCCEEDED(hr) && (document_dispatch != NULL)) {

// retrieve document interface

hr = document_dispatch->QueryInterface(IID_IPersistFile,(void
**)&document);

document->Save(L"c:\\htmlpage.html",0);
document->Release();
document_dispatch->Release();
///////////////////////////////////////////////////////////////////////////////////////

Any help would be much appreciated.

.



Relevant Pages

  • Re: Adding comandbar to RichText Inspector cause error.
    ... simply create html file, insert this code it and then just open html file ... This javascript gets last item from inbox, show it and tried to add Command ... "Dmitry Streblechenko" wrote: ... OutlookSpy - Outlook, CDO ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Checking if a file exist
    ... >> I'm a bit new at this,and i tryed seraching google about it but i ... >> I'm writing an HTML page that needs to check if another html file exist ... >> I tryed to do that with JavaScript but i understood there is no such ... > The same goes for serverside javascrpt ...
    (comp.lang.javascript)
  • Re: VMS 7.3 vs 8.x - java in HTML files, Hmm.
    ... HTML file near the beginning. ... I would extract that one line of evil javascript, ... You didn't mention which TCPIP stack you have and whether you installed ... some separate/different FTP software. ...
    (comp.os.vms)
  • Re: Checking if a file exist
    ... > I'm a bit new at this,and i tryed seraching google about it but i ... > I'm writing an HTML page that needs to check if another html file exist ... If you are talking javascript in a browser on a page from a server on ... The same goes for serverside javascrpt ...
    (comp.lang.javascript)
  • Re: Checking if a file exist
    ... I need to write an Html file ... When a page is loaded, a chunk of Javascript on the page looks to see ... by the server. ... Javascript can tell the server to execute the script via XMLHTTPRequest ...
    (comp.lang.javascript)