net.liftweb.http.SHtml

object SHtml

object SHtml

 extends ScalaObject




Source: SHtml.scala(27)

Nested Classes

ChoiceHolder, ChoiceItem,

 Constructors

def this

 Fields

ChoiceHolder.. object ChoiceHolder

 extends ScalaObject

 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
a.. def a(body : NodeSeq, attrs : (String, String)*)(func : => JsCmd)
Create an anchor with a body and the function to be executed when the anchor is clicked
Elem
a.. def a(body : NodeSeq, cmd : JsCmd, attrs : (String, String)*)
Create an anchor that will run a JavaScript command when clicked
Elem
a.. def a(jsFunc : Call, func : () => JsCmd, body : NodeSeq, attrs : (String, String)*)
Create an anchor tag around a body which will do an AJAX call and invoke the function [details]
param
attrs - - the anchor node attributes
func - - the function to invoke when the link is clicked
body - - the NodeSeq to wrap in the anchor tag
jsFunc - -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.
Elem
a.. def a(func : () => JsObj, jsonContext : JsonContext, body : NodeSeq, attrs : (String, String)*) Elem
a.. def a(jsFunc : Call, body : NodeSeq, attrs : (String, String)*)(func : => JsCmd)
Create an anchor with a body and the function to be executed when the anchor is clicked [details]
param
body - - the NodeSeq to wrap in the anchor tag
attrs - - the anchor node attributes
jsFunc - -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.
Elem
a.. def a(func : () => JsCmd, body : NodeSeq, attrs : (String, String)*)
Create an anchor tag around a body which will do an AJAX call and invoke the function [details]
param
body - - the NodeSeq to wrap in the anchor tag
attrs - - the anchor node attributes
func - - the function to invoke when the link is clicked
Elem
ajaxButton.. def ajaxButton(text : String, jsFunc : Call, func : () => JsCmd, attrs : (String, String)*)
Create an Ajax button [details]
When it's pressed, the function is executed
param
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
text - -- the name/text of the button
return
- a button to put on your page
Elem
ajaxButton.. def ajaxButton(text : NodeSeq, jsExp : JsExp, func : (String) => JsCmd, attrs : (String, String)*)
Create an Ajax button [details]
When it's pressed, the function is executed
param
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
attrs - -- the list of node attributes
text - -- the name/text of the button
return
- a button to put on your page
Elem
ajaxButton.. def ajaxButton(text : NodeSeq, jsFunc : Call, func : () => JsCmd, attrs : (String, String)*)
Create an Ajax button [details]
When it's pressed, the function is executed
param
jsFunc - -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
text - -- the name/text of the button
return
- a button to put on your pagejsFunc.params ++ List(AnonFunc(makeAjaxCall(Str(name+"=true"))))
Elem
ajaxButton.. def ajaxButton(text : NodeSeq, func : () => JsCmd, attrs : (String, String)*)
Create an Ajax button [details]
When it's pressed, the function is executed
param
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
attrs - -- the list of node attributes
text - -- the name/text of the button
return
- a button to put on your page
Elem
ajaxButton.. def ajaxButton(text : String, func : () => JsCmd, attrs : (String, String)*)
Create an Ajax button [details]
When it's pressed, the function is executed
param
jsFunc - -- the user function that will be executed. This function will receive as last parameter the function that will actually do the ajax call. Hence the user function can decide when to make the ajax request.
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
text - -- the name/text of the button
return
- a button to put on your page
Elem
ajaxCall.. def ajaxCall(jsCalcValue : JsExp, jsContext : JsContext, func : (String) => JsCmd) (String, JsExp)
ajaxCall.. def ajaxCall(jsCalcValue : JsExp, func : (String) => JsCmd)
Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript [details]
param
func - -- the function to call when the data is sent
jsCalcValue - -- the JavaScript to calculate the value to be sent to the server
return
- the JavaScript that makes the call
(String, JsExp)
ajaxCheckbox.. def ajaxCheckbox(value : Boolean, jsFunc : Call, func : (Boolean) => JsCmd, attrs : (String, String)*) Elem
ajaxCheckbox.. def ajaxCheckbox(value : Boolean, func : (Boolean) => JsCmd, attrs : (String, String)*) Elem
ajaxForm.. def ajaxForm(onSubmit : JsCmd, body : NodeSeq) Elem
ajaxForm.. def ajaxForm(body : NodeSeq, onSubmit : JsCmd) Elem
ajaxForm.. def ajaxForm(body : NodeSeq) Elem
ajaxInvoke.. def ajaxInvoke(func : () => JsCmd) (String, JsExp)
ajaxSelect.. def ajaxSelect(opts : Seq[(String, String)], deflt : Box[String], jsFunc : Call, func : (String) => JsCmd, attrs : (String, String)*) Elem
ajaxSelect.. def ajaxSelect(opts : Seq[(String, String)], deflt : Box[String], func : (String) => JsCmd, attrs : (String, String)*) Elem
ajaxSelectObj.. def ajaxSelectObj[T](options : Seq[(T, String)], default : Box[T], jsFunc : Call, onSubmit : (T) => JsCmd, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
default - -- the default value (or Empty if no default value)
onSubmit - -- the function to execute on form submission
options - -- a list of value and text pairs (value, text to display)
Elem
ajaxSelectObj.. def ajaxSelectObj[T](options : Seq[(T, String)], default : Box[T], onSubmit : (T) => JsCmd, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
default - -- the default value (or Empty if no default value)
onSubmit - -- the function to execute on form submission
options - -- a list of value and text pairs (value, text to display)
Elem
ajaxText.. def ajaxText(value : String, jsFunc : Call, func : (String) => JsCmd, attrs : (String, String)*) Elem
ajaxText.. def ajaxText(value : String, func : (String) => JsCmd, attrs : (String, String)*) Elem
asInstanceOf.. final def asInstanceOf[T0] T0 Any
checkbox.. def checkbox(value : Boolean, func : (Boolean) => Any, attrs : (String, String)*)
Defines a new checkbox set to {@code value} and running {@code func} when the checkbox is submitted
NodeSeq
checkbox.. def checkbox[T](possible : Seq[T], actual : Seq[T], func : (Seq[T]) => Any, attrs : (String, String)*) ChoiceHolder[T]
checkbox_*.. def checkbox_*(value : Boolean, func : AFuncHolder, id : Box[String], attrs : (String, String)*) NodeSeq
checkbox_id.. def checkbox_id(value : Boolean, func : (Boolean) => Any, id : Box[String], attrs : (String, String)*)
Defines a new checkbox set to {@code value} and running {@code func} when the checkbox is submitted [details]
Has an id of {@code id}.
NodeSeq
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
fajaxCall.. def fajaxCall[T](jsCalcValue : JsExp, func : (String) => JsCmd)(f : (String, JsExp) => T) T
fileUpload.. def fileUpload(func : (FileParamHolder) => Unit) Elem
finalize.. protected def finalize Unit AnyRef
fjsonCall.. def fjsonCall[T](jsCalcValue : JsExp, jsonContext : JsonContext, func : (String) => JsObj)(f : (String, JsExp) => T) T
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
hidden.. def hidden(func : (String) => Any, defaultlValue : String, attrs : (String, String)*) Elem
hidden.. def hidden(func : () => Any, attrs : (String, String)*) Elem
hidden_*.. def hidden_*(func : AFuncHolder, attrs : (String, String)*) Elem
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
jsonButton.. def jsonButton(text : NodeSeq, func : () => JsObj, ajaxContext : JsonContext, attrs : (String, String)*)
Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function [details]
param
attrs - -- the list of node attributes
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
ajaxContext - -- defines the callback functions and the JSON response type
text - -- the name/text of the button
return
- a button to put on your page
Elem
jsonButton.. def jsonButton(text : NodeSeq, jsExp : JsExp, func : (Any) => JsObj, ajaxContext : JsonContext, attrs : (String, String)*)
Create an Ajax buttun that when it's pressed it submits an Ajax request and expects back a JSON construct which will be passed to the success function [details]
param
attrs - -- the list of node attributes
func - -- the function to execute when the button is pushed. Return Noop if nothing changes on the browser.
ajaxContext - -- defines the callback functions and the JSON response type
text - -- the name/text of the button
return
- a button to put on your page
Elem
jsonCall.. def jsonCall(jsCalcValue : JsExp, jsonContext : JsonContext, func : (String) => JsObj) (String, JsExp)
jsonCall.. def jsonCall(jsCalcValue : JsExp, jsContext : JsContext, func : (Any) => JsCmd) (String, JsExp)
jsonCall.. def jsonCall(jsCalcValue : JsExp, func : (Any) => JsCmd)
Build a JavaScript function that will perform an AJAX call based on a value calculated in JavaScript [details]
param
func - -- the function to call when the data is sent
jsCalcValue - -- the JavaScript to calculate the value to be sent to the server
return
- the JavaScript that makes the call
(String, JsExp)
jsonForm.. def jsonForm(jsonHandler : JsonHandler, body : NodeSeq) NodeSeq
jsonForm.. def jsonForm(jsonHandler : JsonHandler, onSubmit : JsCmd, body : NodeSeq) NodeSeq
jsonText.. def jsonText(value : String, cmd : String, json : JsonCall, attrs : (String, String)*)
Create a JSON text widget that makes a JSON call on blur or "return" [details]
param
cmd - - the json command name
json - - the JsonCall returned from S.buildJsonFunc
value - - the initial value of the text field
return
- a text field
Elem
jsonText.. def jsonText(value : String, json : (JsExp) => JsCmd, attrs : (String, String)*)
This function does not really submit a JSON request to server instead json is a function that allows you to build a more complex JsCmd based on the JsExp JE [details]
JsRaw("this.value"). This function is called by the overloaded version of jsonText.
param
json - - takes a JsExp which describes how to recover the value of the text field and returns a JsExp containing the thing to execute on blur/return
value - - the initial value of the text field
return
- a text field
Elem
link.. def link(to : String, func : () => Any, body : NodeSeq, attrs : (String, String)*)
create an anchor tag around a body [details]
param
body - - the NodeSeq to wrap in the anchor tag
func - - the function to invoke when the link is clicked
Elem
makeAjaxCall.. def makeAjaxCall(in : JsExp, context : AjaxContext)
Invokes the Ajax request [details]
param
in - -- the JsExp that returns the request data @context -- defined the response callback functions and the response type (JavaScript or JSON)
JsExp
makeAjaxCall.. def makeAjaxCall(in : JsExp)
Invokes the Ajax request [details]
param
in - -- the JsExp that returns the request data
JsExp
multiSelect.. def multiSelect(opts : Seq[(String, String)], deflt : Seq[String], func : (List[String]) => Any, attrs : (String, String)*) Elem
multiSelectObj.. def multiSelectObj[T](options : Seq[(T, String)], default : Seq[T], onSubmit : (List[T]) => Unit, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
default - -- the default value (or Empty if no default value)
onSubmit - -- the function to execute on form submission
options - -- a list of value and text pairs (value, text to display)
Elem
multiSelect_*.. def multiSelect_*(opts : Seq[(String, String)], deflt : Seq[String], func : AFuncHolder, attrs : (String, String)*) Elem
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
password.. def password(value : String, func : (String) => Any, attrs : (String, String)*) Elem
password_*.. def password_*(value : String, func : AFuncHolder, attrs : (String, String)*) Elem
radio.. def radio(opts : Seq[String], deflt : Box[String], func : (String) => Any, attrs : (String, String)*) ChoiceHolder[String]
radio_*.. def radio_*(opts : Seq[String], deflt : Box[String], func : AFuncHolder, attrs : (String, String)*) ChoiceHolder[String]
select.. def select(opts : Seq[(String, String)], deflt : Box[String], func : (String) => Any, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
deflt - -- the default value (or Empty if no default value)
func - -- the function to execute on form submission
opts - -- the options. A list of value and text pairs (value, text to display)
Elem
selectObj.. def selectObj[T](options : Seq[(T, String)], default : Box[T], onSubmit : (T) => Unit, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
default - -- the default value (or Empty if no default value)
onSubmit - -- the function to execute on form submission
options - -- a list of value and text pairs (value, text to display)
Elem
select_*.. def select_*(opts : Seq[(String, String)], deflt : Box[String], func : AFuncHolder, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
param
deflt - -- the default value (or Empty if no default value)
func - -- the function to execute on form submission
opts - -- the options. A list of value and text pairs
Elem
span.. def span(body : NodeSeq, cmd : JsCmd, attrs : (String, String)*)
Create a span that will run a JavaScript command when clicked
Elem
submit.. def submit(value : String, func : () => Any, attrs : (String, String)*) Elem
submitButton.. def submitButton(func : () => Any, attrs : (String, String)*) Elem
submit_*.. def submit_*(value : String, func : AFuncHolder, attrs : (String, String)*) Elem
swappable.. def swappable(shown : Elem, hidden : Elem)
Build a swappable visual element [details]
If the shown element is clicked on, it turns into the hidden element and when the hidden element blurs, it swaps into the shown element.
Elem
swappable.. def swappable(shown : Elem, hidden : (String) => Elem) Elem
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
text.. def text(value : String, func : (String) => Any, attrs : (String, String)*) Elem
textAjaxTest.. def textAjaxTest(value : String, func : (String) => Any, ajaxTest : (String) => JsCmd, attrs : (String, String)*) Elem
textAjaxTest.. def textAjaxTest(value : String, func : (String) => Any, ajaxTest : Box[(String) => JsCmd], attrs : (String, String)*) Elem
text_*.. def text_*(value : String, func : AFuncHolder, ajaxTest : (String) => JsCmd, attrs : (String, String)*) Elem
text_*.. def text_*(value : String, func : AFuncHolder, attrs : (String, String)*) Elem
text_*.. def text_*(value : String, func : AFuncHolder, ajaxTest : Box[(String) => JsCmd], attrs : (String, String)*) Elem
textarea.. def textarea(value : String, func : (String) => Any, attrs : (String, String)*) Elem
textarea_*.. def textarea_*(value : String, func : AFuncHolder, attrs : (String, String)*) Elem
toString.. def toString String AnyRef
toggleKids.. def toggleKids(head : Elem, visible : Boolean, func : () => Any, kids : Elem) NodeSeq
untrustedSelect.. def untrustedSelect(opts : Seq[(String, String)], deflt : Box[String], func : (String) => Any, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
No check is made to see if the resulting value was in the original list. For use with DHTML form updating.
param
deflt - -- the default value (or Empty if no default value)
func - -- the function to execute on form submission
opts - -- the options. A list of value and text pairs
Elem
untrustedSelect_*.. def untrustedSelect_*(opts : Seq[(String, String)], deflt : Box[String], func : AFuncHolder, attrs : (String, String)*)
Create a select box based on the list with a default value and the function to be executed on form submission [details]
No check is made to see if the resulting value was in the original list. For use with DHTML form updating.
param
deflt - -- the default value (or Empty if no default value)
func - -- the function to execute on form submission
opts - -- the options. A list of value and text pairs
Elem
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) 2007-2009 Lift Team. All Rights Reserved.