FileDialog Script Error

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/20/2012 8:46:53 AM
Gravatar
Total Posts 28
~Leslie

FileDialog Script Error

Hi Joe,

I'm hoping you can help me with an error on the FileDialog.aspx page.  Our users are not able to upload an image on a blog or forum post.  We're using CKEditor and I'll try to describe the steps toward the error.  I click on the editor's image icon to open the Image Properties dialogue box.  Then I click on the Browse Server button which opens FileDialog.aspx.  (The actual link in my local development environment is: http://localhost:51011/Dialog/FileDialog.aspx?ed=ck&type=image&CKEditor=ctl00_mainContent_edMessageinnerEditor&CKEditorFuncNum=2&langCode=en).  As this page is opening, a pop up Webpage Error is raised:  Line: 199  Error: Object doesn't support property or method 'fileTree'.  When I close the box,  FileDialog.aspx shows the top level file path (/Data/sites/1/), but it does not show files that are in the media folder to select from.

In debugging the webpage, it opens the javascript script at line 199, highlighted at $('#pnlFileTree').fileTree....: 

<script type="text/javascript">$(document).ready(function() {$('#lnkImageCropper').hide(); $('#pnlFileTree').fileTree({root: '~/Data/Sites/1/media/',loadMessage:'Loading...',multiFolder: false, script: 'http://localhost:51011/Services/jqueryFileTreeMediaBrowser.ashx?type=image'}, function(file) {document.getElementById('hdnFileUrl').value = file; document.getElementById('txtSelection').value = file; document.getElementById('imgPreview').src = file; var imageCropperUrl = 'http://localhost:51011/Dialog/ImageCropperDialog.aspx'; var selDir = document.getElementById('hdnFolder').value; var returnUrl = encodeURIComponent('http://localhost:51011/Dialog/FileDialog.aspx?ed=ck&type=image&dir=' + selDir) ; $('#lnkImageCropper').attr('href',imageCropperUrl + '?src=' + file + '&return=' + returnUrl); $('#lnkImageCropper').show(); }, function(folder) {document.getElementById('hdnFolder').value = folder; if(folder == 'root'){document.getElementById('hdnFolder').value = '~/Data/Sites/1/media/'; }});});
</script>

Would you have a suggestion as to why this error is appearing and preventing the media folder files from displaying and how we can correct it?  We are using version 2.3.9.0 MSSQL, blog schema version 2.6.0.0, forum schema version 2.2.0.0.


Thanks!

Leslie Jones

9/20/2012 2:04:49 PM
Gravatar
Total Posts 18439

Re: FileDialog Script Error

Are you seeing that it fails to load any scripts or css files using borwser tools to view the loaded resources?

It sounds like it is failing to load the main script for file tree. Maybe a missing file or file permission problem.

You must sign in to post in the forums. This thread is closed to new posts.