Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Multiple forms in Firefox and Chrome

Last post 11-03-2011, 8:49 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  11-02-2011, 6:52 AM 70873

    Multiple forms in Firefox and Chrome

    If I have two forms on the same page nothing happen in Firefox and Chrome!
    But in IE it works great. Is there a solution / work around for this or do I have to use only one form?
     
    Someway like this:
     
    echo "<form name=frmSearch>
    <input....
    </form>";

    echo "<form name=frm>";
            $uploader=new PhpUploader();
            
            $uploader->MultipleFilesUpload=true;
            $uploader->InsertText="Select multiple files (Max 1M)";
            
            $uploader->MaxSizeKB=1024;
            $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar,*.pdf";
            
            $uploader->SaveDirectory="savefiles";
            
            $uploader->FlashUploadMode="Partial";
            
            $uploader->Render();
    echo "</form>";
     
    And yes, I need two forms...
  •  11-02-2011, 8:32 AM 70903 in reply to 70873

    Re: Multiple forms in Firefox and Chrome

    Hi fordonskontroll,
     
    Please try the example below. I used two forms on the same page too,it works fine for me.
     
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>demo</title>
    </head>
    <body>
    <form name=form1>
        <div>
            <?php
                $uploader=new PhpUploader();
                $uploader->MultipleFilesUpload=true;
                $uploader->InsertText="Upload File (Max 10M)";
                $uploader->MaxSizeKB=102400000;    
                $uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip,avi,txt";
                $uploader->Render();
                ?>    
         </div>
    </form>
    <form name=form2>
    <input type="text" />
    </form>
    </body>
    </html>
     
    If still get the same issue on your end with the example above, please download the latest version and try again.
     
    Latest version downloads http://www.cutesoft.net/downloads/folders/52443/download.aspx
     
    Regards,
     
    Ken
  •  11-02-2011, 9:43 AM 70913 in reply to 70903

    Re: Multiple forms in Firefox and Chrome

    Thanks for the quick answer!
     
    I tried your example and it works... so the error was on my side...
     
    I moved my first form-start-tag cause it was in a strange place between som other tags... long story.
    Short story: It now works great!
     
    Now my only concern is that the "browser" box shows up in Firefox after I click the Upload file button...
  •  11-03-2011, 8:49 AM 70948 in reply to 70913

    Re: Multiple forms in Firefox and Chrome

    Hi fordonskontroll,
     
    It is the firefox browser limitation. By default, uploader will use Silverlight mode to upload. Next is flash and last is IFrame mode.
     
    Shows the browse button it mean that the uploader using the IFrame mode (if not silverlight and flash plug-in install will switch to IFrame automatically).
     
    Regards,
     
    Ken
     
     
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.