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
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