MSHTML

  • Thread starter Thread starter Sandeep Dash
  • Start date Start date
S

Sandeep Dash

Hello,
I have an webpage (say first.asp) that allows user to
edit the published content using MSHTML. Besides some
tabular contents first.asp includes a form with a hidden
field (say with the name hdnEditedContent) and a button.
After editing the content user is suppose to save the
edited content to the server as well as locally. To do so
she needs to click on the provided button that calls a
javascript to set the snapshot (edited html content) as a
string to the hidden field and submit the form with the
action url set to the original first.asp. Now first.asp
saves the content of the hdnEditedContent to some server
variable as a string and then on the fly sends the same
string back to the user that includes <body
onload='execCommand("SaveAs",true);'>. So as expected the
SaveAs dialog box appears on load of the page. The problem
starts from here in that internet explorer does not save
any linked stylesheets nor the image files. Also if the
page is attempted to save by selecting the SaveAs menu
option in File menu then an alert appears as 'This web
page may not save correctly. Would you like to save it
anyway?'. If this message box is bypassed still the same
saving issue persists.

I tried to search this everywhere but I can find very
little help on this. Any help in this regard is highly
appreciated.

Best Regards
Sandeep
 
internet explorer does not save any linked stylesheets
nor the image files.

Which Save as Type: option are you having problems with?
And which version of mshtml.dll do you have?

Some people had this symptom when they tried to save
MSKB articles (e.g.) with the Web-Archive, single file (*.mht) option.
However, it seems the symptom stopped after the latest security patch
(which included a new version of mshtml.dll).
Of course, it is also possible that this was just a coincidence and what
really changed was the format of the MSKB articles... ;)

AFAIK there has never been a problem with the default save option
(Web Page, complete (*.htm,*.html))

BTW even when there was a problem with the .mht save option it was
still possible to send the page to OE (e.g. with File, Send, Page by E-mail...)
and do a File Save there. You could override the default extension
of .eml with .mht and it seemed to work just as if the normal single-file
save had been done in IE. YMMV.


HTH

Robert Aldwinckle
 
Back
Top