SetHtml

olon.http.js.JsCmds.SetHtml
case class SetHtml(uid: String, content: NodeSeq) extends JsCmd

Replaces the content of the node with the provided id with the markup given by content

This is analogous to assigning a new value to a DOM object's innerHtml property in Javascript.

Value parameters

content

- the new content

id

- the id of the node whose content will be replaced

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait JsCmd
trait ToJsCmd
trait HtmlFixer
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def &(other: JsCmd): JsCmd

Attributes

Inherited from:
JsCmd
protected def fixHtmlAndJs(uid: String, content: NodeSeq, forceExtractInlineJavaScript: Option[Boolean]): (String, List[JsCmd])

Super important... call fixHtml at instance creation time and only once This method must be run in the context of the thing creating the XHTML to capture the bound functions

Super important... call fixHtml at instance creation time and only once This method must be run in the context of the thing creating the XHTML to capture the bound functions

Attributes

Inherited from:
HtmlFixer
def fixHtmlCmdFunc(uid: String, content: NodeSeq)(f: String => String): String

Calls fixHtmlAndJs and if there's embedded script tags, append the JsCmds to the String returned from applying the function to the enclosed HTML. For use when converting a JsCmd that contains HTML.

Calls fixHtmlAndJs and if there's embedded script tags, append the JsCmds to the String returned from applying the function to the enclosed HTML. For use when converting a JsCmd that contains HTML.

Attributes

Inherited from:
HtmlFixer
def fixHtmlFunc(uid: String, content: NodeSeq)(f: String => String): String

Calls fixHtmlAndJs and if there's embedded script tags, construct a function that executes the contents of the scripts then evaluations to Expression. For use when converting a JsExp that contains HTML.

Calls fixHtmlAndJs and if there's embedded script tags, construct a function that executes the contents of the scripts then evaluations to Expression. For use when converting a JsExp that contains HTML.

Attributes

Note

Currently, fixHtmlFunc does '''not''' do event extraction, even when LiftRules.extractInlineJavaScript is true, due to poor interactions with JsExp usage. This will be fixed in a future Lift release; see https://github.com/lift/framework/issues/1801 .

Inherited from:
HtmlFixer

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
JsCmd -> Any
Inherited from:
JsCmd

Concrete fields