net.liftweb.widgets.uploadprogress.UploadProgress

object UploadProgress

object UploadProgress

 extends ScalaObject


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


Source: UploadProgress.scala(35)

 Constructors

def this

 Fields

init.. def init
Call UploadProgress [details]
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
   
RulesSeq[PartialFunction]
progressJsonResponse.. def progressJsonResponse
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
        
              [details]
              
dispatch.append { case Req("mycustomprogress" :: Nil, "", GetRequest) => () => UploadProgress.progressJsonResponse }
Full[LiftResponse]

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
head.. def head(xhtml : NodeSeq)
Adds a default script to the page configurable by attributes passed to the widget [details]
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: ""
NodeSeq
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
sessionProgessListener.. def sessionProgessListener
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
Unit
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.