In a custom module I am using an object that works perfectly in dnn 3.3.5 but fails on page submission when run in dnn 4.5.1. The object is common xfile by softartisan.
Object declaration from ascx
<OBJECT id="AXFFile" classid="CLSID:230C3D02-DA27-11D2-8612-00A0C93EEA3C"
height = "200"
codebase = "/dotnetnuke/DesktopModules/printRequest/progress.htm"
Style = "HEIGHT: 200px; LEFT: 0px; TOP: 0px; WIDTH: 450px"
width="400">
<PARAM NAME="_cx...</OBJECT>
<script language="javascript">
var XFile = document.all("AXFFile").XFRequest;
XFile.TimeOut = 3600;
XFile.Server = "localhost";
XFile.ObjectName = "/dotnetnuke/default.aspx?tabid=181";
if (XFile.formElements.Count > 1)XFile.formElements.RemoveAll;
</script>
The javascript that opens the page that starts the object process.
window.open("/dotnetnuke/DesktopModules/printRequest/progress.htm",null,winstyle);
Code from the page that starts the process. The object calls back to portal tab as defined above.
<SCRIPT language="javascript">
function callback() {
document.all("AXFFileProgress").XFRequestStream = opener.document.all("AXFFile").XFRequestStream;
document.all("AXFFileProgress").ShowProgress();
opener.document.all("AXFFile").Start();
var x = opener.document.all("AXFFile").XFRequest.Response;
opener.document.open();
opener.document.write(x);
window.close();
return;
}
</SCRIPT>
</HEAD>
<BODY onload="callback();">
<OBJECT ID="AXFFileProgress" CLASSID="CLSID:C3EAF164-E06A-11D2-B5C9-0050041B7FF6" VIEWASTEXT>
</OBJECT>
<SCRIPT language="VBS">
'This will not work in Javascript
sub AXFFileProgress_TransferComplete()
'uncomment the next line to get a pop-up when the transfer is finished
'MsgBox "Transfer completed"
end sub
</SCRIPT>
</BODY>
Once this is called the links on the page and the menu are no longer functional and will produce "Webform_PostBackOptions is undefined" errors. I have found threads on this error but most refer to .axd fixes, none of which solve the problem. I've tried everything suggestion in related threads - turn off compression, comment it out of the web.config, whitespace, clear cache, clear browser cache, exclude webresource.axd, etc.I have spent many many hours on this so any assistance....