1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how this button works

Discussion in 'HTML & JavaScript' started by Mutikasa, Dec 2, 2012.

  1. Mutikasa

    Mutikasa Power Member

    Joined:
    May 23, 2011
    Messages:
    574
    Likes Received:
    207
    Code:
    http://www.solidfiles.com/
    has upload button with code

    Code:
    <section id="upload">     
    <div id="upload-container">         
    <div href="#" class="large-arrow"></div>         
    <a href="#" id="upload-button">Drag and drop files here</a>     
    </div> 
    </section>
    and
    Code:
    <script type="text/javascript">     
    SF.uploader.browsebutton = 'upload-button';     
    SF.uploader.upload_url = "/upload/process/0/";     
    SF.uploader.file_size = 10485760; </script>
    but I cannot find any other reference to it, and still doesn't know how it works. I'm interested only in "upload" part, not "drag and drop".
    What technology is used to build this?
     
    Last edited: Dec 2, 2012
  2. Mutikasa

    Mutikasa Power Member

    Joined:
    May 23, 2011
    Messages:
    574
    Likes Received:
    207
    I'm talking about the upload function. It acts like "browse" and "submit" at the same time without <input> tag and <form>.
     
  3. arousso

    arousso Registered Member

    Joined:
    Jan 11, 2012
    Messages:
    55
    Likes Received:
    10
    It's Java script