close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Odd code changes by image resizer in WADA form.

Thread began 7/26/2012 10:43 am by Andrew Read | Last modified 8/01/2012 1:26 am by Andrew Read | 1125 views | 5 replies

Andrew Read

Odd code changes by image resizer in WADA form.

OK, I have a WADA form with a file field in it, generally on the update page I show a thumbnail of the image to the users and let them know that if they leave the file field blank the current file will be kept.

I decided to use image resizer to display the thumbnail this time (I have never used it before) so I am not sure if this is a bug, or me doing something incorrectly.

The code before image resizer is added:

php:
<li class="formItem">
            <div class="formGroup">
                  <div class="lineGroup"> 
                     <div class="fullColumnGroup">
                          <div class="errorGroup">
<div class="fieldPair">
                       <div class="fieldGroup">
                       <span>
  <input name="fieldPicture" type="file" id="fieldPicture" size="30">
<label for="fieldPicture" class="sublabel" >Picture</label>
<br>
&emsp;&emsp;Current image (leave picture field blank to keep this image): <img  src="../../folder1/folder2/<?php echo $row_WADAtablename['fieldPicture']; ?>" width="100" height="100" alt="<?php echo $row_WADAtablename['fieldModel']; ?> Image"></span>
                       </div>
                       </div>
                          </div>
                     </div>
                  </div> 
            </div>
            </li>



The code after image resizer is added:

php:
<li class="formItem">
            <div class="formGroup">
                  <div class="lineGroup"> 
                     <div class="fullColumnGroup">
                          <div class="errorGroup">
<div class="fieldPair">
                       <div class="fieldGroup">
                           <span>
                        <input name="fieldPicture" type="file" id="fieldPicture" size="30">
                        <label for="fieldPicture" class="sublabel" >Picture</label>
                        <?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1343324518405
ob_start();
?>
                        <br>
&emsp;&emsp;Current image (leave picture field blank to keep this image): <img  src="../../folder1/folder2/<?php echo $row_WADAtablename['fieldPicture']; ?>" width="100" height="100" alt="<?php echo $row_WADAtablename['fieldModel']; ?> Ima<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "../../folder1/folder2/thumbnails""proportion"""false));
// End Cached Resized Image: ImageCacheInstance_1343324518405
?>ge"></span> </div>
                       </div>
                          </div>
                     </div>
                  </div> 
            </div>
            </li>



It looks like the resizer is inserted in an odd place and it breaks the span as well.

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