close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Stand-alone file manager questions

Thread began 1/13/2012 1:00 pm by Joe Lowery | Last modified 1/16/2012 11:25 am by Joe Lowery | 2065 views | 6 replies |

Joe Lowery

Stand-alone file manager questions

A couple questions using the stand-alone file manager:

After creating the Insert page using DataAssist, I changed the text field named "filename" to a file field, then selected it and inserted the File Manager. First question: it lists the field name as "file1" - should I keep that or change to mine, filename? If I keep it, I realize I'll need to change the Insert SB.

Seems to insert okay, but when I try to preview, there is no folder icon showing. When I look at the code, I see a style set to visibility:hidden. Is this correct?

Here's the inserted HTML:

<input type="text" value="" id="file1" name="file1" readonly style="float:left;"/>
<div style="float:left;"><img src="../webassist/kfm/themes/webassist_v2/spacer.gif" id="htmleditor_image_1" align="top" /></div>
<img src="../webassist/kfm/themes/webassist_v2/icon_folder.png" width="20" height="18" id="htmleditor_browse_1" name="{dds:'../', startup_folder:'slideShow_front', show_sidebar:false, width:600, height:400}" style="vertical-align:bottom; padding-bottom:2px; visibility: hidden;" /> </div>



Does this look right?

Thanks - Joe

Sign in to reply to this post

Ray BorduinWebAssist

You should rename your file field to match what you are using in the InsertSB, or update the InsertSB...

The browse is hidden at first because it is dynamically positioned based on the size of the image added (if any). It should be hidden at first, but javascript should run to position it and then display it. It is hidden at first so that you don't see it jump as the page loads and the script runs. If it doesn't show, then the javascript isn't running properly.

If you can put up a sample page where I can look at it I can debug and let you know why it isn't showing.

Sign in to reply to this post
Did this help? Tips are appreciated...

Joe Lowery

Stand-alone file manager questions

Thanks Ray.

Here's the URL: banners_Insert.php
I temporarily disabled the SecurityAssist code.

I've attached a zip of the page as well.

Best - Joe

Attached Files
banners_Insert.php.zip
Sign in to reply to this post

Ray BorduinWebAssist

I'm thinking it must be a conflict with another script you have on the page.

The file upload code (located at: ../webassist/kfm/filebrowse.js)

Uses a function called "init()"

one possibility is that there is another function on your page that uses that same name and it is getting overwritten.

You might try a find/replace in that .js file to replace "init(" with "fm_init" to ensure it is unique.

Another likely cause (actually probably more likely) is that the onload event is getting overwritten by other functionality on your page.

The file upload .js file uses this to call the init function onload of the page:
window.onload = init;

It looks like you may have a few other scripts running onload that may overwrite that onload event.

You could try adding the init call to the bottom of your page instead of the onload event, probably right above the </body> tag like:

<script>
init();
</script>
</body>

You may want to try this first and if that doesn't work try renaming the function. One or the other (or both) I imagine will fix it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Joe Lowery

You were right. The code was from a legacy page I inherited and I missed that onLoad event during my scrubbing. When I removed it, I got the folder image. Now, I'm getting the pop-up window but with a 404. I admit I'm a little confused about the file manager settings. Does the upload directory specified in the File Manager tab have to be in the same folder as the current page or a subfolder within that folder? In other words, here's my directory structure:
/
/admin
/admin/testPhotos

So, what should I put in the Upload Directory field under the File Manager tab? "admin", "/admin" or should it just be blank?

Best - Joe

Sign in to reply to this post

Ray BorduinWebAssist

That setting isn't your problem.

Make sure to upload the "webassist/kfm" folder. The error implies it hasn't been uploaded.

Sign in to reply to this post
Did this help? Tips are appreciated...

Joe Lowery

Got it all working. Thanks, Ray. I appreciate you taking some time on a holiday!

Best - Joe

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...