close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Following step by step guide and adding Progress bar shows and does nothing

Thread began 10/08/2009 12:32 pm by jason228892 | Last modified 10/26/2009 1:48 pm by Jason Byrnes | 3844 views | 10 replies |

jason228892

Following step by step guide and adding Progress bar shows and does nothing

Hi, I've started from the absolute beginning and tried to follow the step by step guide to adding an upload image form and got nowhere. Tried adding a progress bar too but makes things worse. Here's the code produced by following the guide. All files have been uploaded and are in the locations outlined below. Can somebody please tell me where it's going wrong? Many thanks.

-----------THE ORRIBLE CODE------------

<?php
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "images/uploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
// WA_UploadResult2 Params Start
$WA_UploadResult2_Params = array();
// WA_UploadResult2_1 Start
$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "images/uploads/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "120",
'ResizeHeight' => "120",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult2_1 End
// WA_UploadResult2 Params End
?>
<?php?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "upload", "0", "", "true", $WA_UploadResult1_Params);
}?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult2");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFiles("WA_UploadResult2", "upload", "0", "", "true", $WA_UploadResult2_Params);
}
?>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>

<div id="form1_ProgressWrapper">
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<p>
<label>Upload File
<input type="file" name="upload" id="upload" />
</label>
</p>
<p>
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</p>
</form>
</div>

--------------ORRIBLE CODE ENDS--------------------

As soon as the DIV for the progress bar is added. The form disappears completely! As someone else has mentioned I'm not a coder either but don't mind getting hands dirty, but the sales pitch is 'with little or no coding experience'. I think not!!!!!

Sign in to reply to this post

Jason ByrnesWebAssist

The first problem i see is at line 1- 2:

php:
<?php

<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>require_once("WA_DigitalFilePro/HelperPHP.php"); ?>




it should be changed to:

php:
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>



I have never seen the script tag added to the php code block before so I cannot say why it is doing that.


It may be doing it because you page is not a complete web page, it is missing required pieces such as the doctype tag, the head tabs, the html and body tags.



If images are still not uploading, add the3 following code at line 1 to see if there is a php error occurring:

php:
<?

error_reporting(E_ALL);
ini_set('display_errors','on');
?>




also go the bindings tab, expand the WA Uploaded Files Global Status group and add the debug Info binding to your page.

After performing a test, post pack with the output of the debug info.

Sign in to reply to this post

martin389853

I can't even find the progress bar 'how to'. haha. The link in the DFP How to - Adding the Digital File Pro Progress Bar - boots up my default browser and then sends me to the home page. I tried using the URL in the same browser and window but still getting kicked back to the home page. The search field isn't providing any solutions either.

I've tried using the progress bar extension and while I get a new div, I don't see anything else happening. Also, the progress bar doesn't actually run when I'm uploading stuff. Hence I'm looking for the 'How To'.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

the link is in the How To Section of the Digital File pro support page:
digital-file-pro/


digital_file_pro_progress_bar_ht.pdf



if you are still having problems, send a link to your page so I can take a look.

Sign in to reply to this post

martin389853

I'm sure I checked there and that file wasn't there at the time. I must be going mad. Thanks for the link anyway.

After having read the How to I realise that I had actually done what I needed to do correctly. Which means the progress bar isn't working. Can I ask, is there a file other than the file within which DFP is being used that needs to be uploaded? I had this problem with DFP itself where there was a whole file that I didn't know about that needed to go. I really think this sort of information is critical and should be in the How To's. I only update the relevant file rather than my whole website because their are just too many differing files to sort through. If I don't know what other file to upload then I'm stuck.

can't send you a link because it is in a secure area of a secure website which would require registering etc etc.

Sign in to reply to this post

Jason ByrnesWebAssist

There is a file named "jquery-blockui-formprocessing.js" created in the WA_DigitalFilePro directory that needs to be uploaded.


if you are still having problems, please compress the php file into a zip archive so I can take a look at the code.

Sign in to reply to this post

martin389853

Hey there, I've checked that folder and its been refreshed up to the server. Still no joy. I don't mind zipping the page although it has certain areas that I will have to remove for security but I don't really know what you mean by a zip archive. Also, because the php file is just a single page of text, it doesn't really need to be zipped... Let me know what you think. cheers.

Sign in to reply to this post

martin389853

Attached a file but then realised there was too much secure stuff I needed to hack out. This will be quicker if I just bin the update bar.

Sign in to reply to this post

Jason ByrnesWebAssist

can you try adding the progress bar to another page that contains only a form with a file upload field. It is not necessary to add the upload file behavior, just the progress bar and see if that works.

Sign in to reply to this post

martin389853

cheers

ok, I had a go at this and I did actually notice a whole bunch of html appear that was not appearing before. I think this may be something to do with the fact that I had a big bunch of php underneath. Don't really know. I copied and pasted the :

<div id="images1_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('images1', 'images1_ProgressMessageWrapper', WADFP_Theme_Options['Bar:Pacifica']);
</script>
<div id="images1_ProgressMessage" >
<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/pacifica-bar.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>
</div>

bit into the right page and hey presto it works. So, thanks for that.

Sign in to reply to this post
loading

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...