Microsoft JScript runtime error: Object expected , upon local deployment.

Last post 07-26-2009, 8:10 AM by cutechat. 2 replies.
Sort Posts: Previous Next
  •  07-25-2009, 10:56 AM 54275

    Microsoft JScript runtime error: Object expected , upon local deployment.

    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:
     
    1.  //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:
     
    1. <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&amp;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=&quot;none&quot; ; 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=&quot;none&quot; ; 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.
  •  07-25-2009, 11:22 AM 54277 in reply to 54275

    Re: Microsoft JScript runtime error: Object expected , upon local deployment.

    I'm now looking into the issue of the file paths as a possible culprit.
  •  07-26-2009, 8:10 AM 54282 in reply to 54275

    Re: Microsoft JScript runtime error: Object expected , upon local deployment.

    Hi,
     
    Please check the HTML output,
     
    There should be one line :
     
    <script type='text/javascript' src='/demo/phpuploader/ajaxuploaderresource.php?type=script'></script>
     
    Please check whether that file can output javascript.

    Regards,
    Terry
     
View as RSS news feed in XML