class GUIDJsExp extends JsExp
A long time ago, Lift was going to track every function/GUID combination vended to a web page with extreme granularity. This meant that for every function/GUID vended, Lift would put that GUID in an attribute associated with the element on the page. In order to capture the GUIDs, some methods like SHtml.ajaxCall() returned a Tuple containing the GUID and the JsExp. This caused confusion and ugly code. So, the GUIDJsExp came into being. Basically, it's backward compatible with the Tuple (String, JsExp), but it functions like a JsExp (although you don't even have to call .toJsCmd because the toString method returns the expresion itself). It should make the ajaxCall()._2.toJsCmd thing into ajaxCall().
- Alphabetic
- By Inheritance
- GUIDJsExp
- JsExp
- ToJsCmd
- HtmlFixer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(right: JsExp): JsExp
- Definition Classes
- JsExp
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
===(right: JsExp): JsExp
- Definition Classes
- JsExp
- def _1: String
- def _2: JsExp
-
def
appendToParent(parentName: String): JsCmd
- Definition Classes
- JsExp
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
cmd: JsCmd
- Definition Classes
- JsExp
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- JsExp → AnyRef → Any
- val exp: JsExp
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fixHtmlAndJs(uid: String, content: NodeSeq, forceExtractInlineJavaScript: Option[Boolean] = None): (String, List[JsCmd])
Super important...
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
- protected
- Definition Classes
- 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.
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.
- Definition Classes
- 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.
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.
- Definition Classes
- HtmlFixer
- Note
Currently,
fixHtmlFunc
does not do event extraction, even whenLiftRules.extractInlineJavaScript
istrue
, due to poor interactions withJsExp
usage. This will be fixed in a future Lift release; see https://github.com/lift/framework/issues/1801 .
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val guid: String
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def product: (String, JsExp)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toJsCmd: String
- def toString(): String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
~>(right: Box[JsMember]): JsExp
- Definition Classes
- JsExp
-
def
~>(right: JsMember): JsExp
~> accesses a property in the current JsExp
~> accesses a property in the current JsExp
- Definition Classes
- JsExp