net.liftmodules.widgets.uploadprogress

UploadProgress

object UploadProgress extends AnyRef

A helper widget that makes it easy to do upload progress bars using ajax polling.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. UploadProgress
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  12. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  13. def head (xhtml: NodeSeq): NodeSeq

    Adds a default script to the page configurable by attributes passed to the widget.

    Adds a default script to the page configurable by attributes passed to the widget. If you want customer behaviour, just make your own JS based on the avalible options:

    • dataType: "json",
    • interval: 1500,
    • progressBar: "#progressbar",
    • progressUrl: "/progress",
    • start: function() {},
    • uploading: function() {},
    • complete: function() {},
    • success: function() {},
    • error: function() {},
    • preloadImages: [],
    • uploadProgressPath: '/classpath/uploadprogress/uploadprogress.js',
    • jqueryPath: '/classpath/jquery.js',
    • timer: ""
  14. def init : RulesSeq[PartialFunction[Req, () ⇒ Box[LiftResponse]]]

    Call UploadProgress.

    Call UploadProgress.init from Boot.scala. This function sets up your application to use Lift's streaming upload rather than memory based upload. It also sets the maximum upload size to be 1GB... if you want a smaller number, just call the LiftRules.maxMimeSize and LiftRules.maxMimeFileSize after calling this objects init method in your Boot.scala.

    
     import _root_.net.liftweb.widgets.uploadprogress.UploadProgress
    
     UploadProgress.init
    
    

  15. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  16. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  17. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  18. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  19. def progressJsonResponse : Full[LiftResponse]

    If you want your own custom URL for the progress callbacks, but dont want anything but the default response, just prepend your own DispatchPF in boot that looks something like:

    If you want your own custom URL for the progress callbacks, but dont want anything but the default response, just prepend your own DispatchPF in boot that looks something like:

    
    LiftRules.dispatch.append {
     case Req("mycustomprogress" :: Nil, "", GetRequest) => () => UploadProgress.progressJsonResponse
    }
    
    

  20. def sessionProgessListener : Unit

    In order to get progress updating on a session by session basis, we have to embed this function into the current users session and use a SessionVar extension in order to keep a track of where we are too with the upload.

  21. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  22. def toString (): String

    Definition Classes
    AnyRef → Any
  23. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any