Hi all!
My problem is this:
I`ve got an ASP application with an object clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A element (this is DHTML tool for text editing). There is also a form in my application. When I press the "save" button, the app gets the contents of this "clsid:2D36 ..." object, assigns them to one of the form`s fields and submits the form. When submitting simple MS Word DOC text (or any other), everything is fine. But when you try to submit a table from a DOC file, an error occurs: "Access denied" at the line when I submit form: document.forms( 0).submit();
Here`s some code:
Please post your suggextions and advice, I would really appreciate any help!
P.S.: I`m not actually the author of the app, I`m just fulfilling the bugfixing task
My problem is this:
I`ve got an ASP application with an object clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A element (this is DHTML tool for text editing). There is also a form in my application. When I press the "save" button, the app gets the contents of this "clsid:2D36 ..." object, assigns them to one of the form`s fields and submits the form. When submitting simple MS Word DOC text (or any other), everything is fine. But when you try to submit a table from a DOC file, an error occurs: "Access denied" at the line when I submit form: document.forms( 0).submit();
Here`s some code:
Code:
function partifyDocument( varDocument )
{
var strRetVal;
strRetVal = varDocument.body.innerHTML;
return strRetVal;
}
function saveAction()
{
if (document.forms(0).hlp_type.checked != true) {
try {
document.forms(0).hlp_file.value = null;
var strContent = partifyDocument(tbContentElement.DOM)
document.forms(0).hlp_text.value = strContent;
} catch(exception) {
}
}
SaveAndCloseClicked = true;
}
function submitAction()
{
if( document.forms(0).<%=arrLstFlds(1)%>.value == "" ){
alert("Header must not be empty");
return false;
}
document.forms(0)._action.value = 'edit'
saveAction();
SaveAndCloseOver = true;
//alert('submiting...');
//document.write(tbContentElement.DOM.body.innerHTML);
document.forms(0).submit(); ///Error occures here!!!
}
P.S.: I`m not actually the author of the app, I`m just fulfilling the bugfixing task
Comment