Greetings,
Whenever running any one of the examples locally (running apache, and php 5.x), I get a: Microsoft JScript runtime error: Object expected.
Luckily, I have good debugging capability here, and have been able to pinpoint the problem to the following module:
include_phpuploader.php.
the error occurs as a result of line: 289 which states:
-
//TODO:Opera!!
$code.=" onload='this.style.display="none" ; CuteWebUI_AjaxUploader_Initialize(this.id);' onerror='this.onload()' ContextValue='TODO' />";
Cancelling this line , indeed does not display the error, but natrually does not solve the issue at hand.
I have gone another step further, and evaluated the actual output that is being sent to the browser by the $code variable:
- <img id='AjaxUploaderFiles_Loader' UniqueID='myuploader' Namespace='CuteWebUI' UploadModuleNotInstall='1' src='/Users/USER/Documents/Visual Studio 2005/Projects/Mirik - Snir/Mirik - Snir/ajaxupload/phpuploader/ajaxuploaderresource.php?type=file&file=continuous.gif' InsertButtonID='myuploaderButton' ResourceHandler='/Users/USER/Documents/Visual Studio 2005/Projects/Mirik - Snir/Mirik - Snir/ajaxupload/phpuploader/ajaxuploaderresource.php' UploadUrl='/Users/USER/Documents/Visual Studio 2005/Projects/Mirik - Snir/Mirik - Snir/ajaxupload/phpuploader/ajaxuploaderhandler.php' MaxSizeKB='10240' CancelUploadMsg='Cancel upload' CancelAllMsg='Cancel all Uploads' UploadingMsg='Uploading..' UploadType='Auto' ShowProgressBar='1' ShowProgressInfo='1' NumFilesShowCancelAll='2' PanelWidth='360' BarHeight='20' InfoStyle='padding-left:3px;font:normal 12px Tahoma;' BarStyle='Continuous' BorderStyle='border:1px solid #444444;' onload='this.style.display="none" ; CuteWebUI_AjaxUploader_Initialize(this.id);' onerror='this.onload()' ContextValue='TODO' />
The error appears to be due to the following part of the above output:
onload='this.style.display="none" ; CuteWebUI_AjaxUploader_Initialize(this.id);'
it seems the CuteWebUI_AjaxUploader_Initialize function cannot be found for some reason.
I hope a solution can be found...since none of the examples currently work.
Thanks in advance,
Peleg.